macromedia flash flash remoting:
I am trying to populate a combo box using DataGlue and am experiencing
problems. If a loop thru the result set and perform a addItem I, the data is
displayed, just takes some time. I was reading in the Flash Remoting book that
utilizing DataGlue will speed up the process. Unfortunately when I try to use
that, nothing happens. I am confused. Looks simple enough in the book. Can
anyone please shed some light on what I could be doing wrong. Stephen
Method 1: This one works #include 'NetServices.as' #include 'DataGlue.as'
#include '../Includes/url.as' var frServiceName = 'generalRS.generalBean';
var frService = frConnection.getService(frServiceName, this);
frService.getResultSet('usp_PersonnelListingLetter','7'); //retrieve list of
states function getResultSet_Result(result_rs) {
person_cb.addItem('Select Injured Person','None'); for(var
i=0;i<result_rs.getLength();i++) { var person = result_rs.getItemAt(i);
person_cb.addItem(person.Lname+', '+person.Fname+'
'+person.Rate,person.EmployeeId); } } Method 2: Does not work #include
'NetServices.as' #include 'DataGlue.as' #include '../Includes/url.as' var
frServiceName = 'generalRS.generalBean'; var frService =
frConnection.getService(frServiceName, this);
frService.getResultSet('usp_PersonnelListingLetter','7'); //retrieve list of
states function getResultSet_Result(result_rs) {
DataGlue.bindFormatStrings(person_cb, result_rs, '#Lname#', '#EmployeeId#' );
}