Groups | Blog | Home
all groups > macromedia flash flash remoting > february 2005 >

macromedia flash flash remoting : retrieving data into flash from cfc



sixlead
2/24/2005 7:36:33 PM
This is turning into a real challenge and I'm not sure why. the following
snipit is from a flash document that calls a cfc document to reterieve a
listing of subjectareas for students. The cfc works a proven by a cfm page
that displays all returned records and fields. While the flash listBox only
displays the first field correctly the second field is UNDEFINED and the third
is bland. Any help would be appreciated. // :::: Remote Calls function
getSubAreasByGrp() { trace('function getSubAreasByGrp called'); // invoke the
'getParksList' method in the parkService service, send current selection
conn_SubjectAreas.get_subjectAreasByGroup('HS'); } // :::: DEFAULT RESPONDERS
:::: function get_subjectAreasByGroup_Result(getSelectedSubjectAreas) {
trace('server responded: Records: '+getSelectedSubjectAreas.getLength());
trace('setting the ListBox'); // Use DataGlue Binding to create a differnent
label and Value pair // The Value is what will be sent to the function, and is
what the DB will match DataGlue.bindFormatStrings(lb_SubjectAreas,
getSelectedSubjectAreas, '#areaId#', '#groupId#', '#subjectArea#'); }
sixlead
2/24/2005 8:18:27 PM
The problem is a misunderstanding of the DataGlue function. by removing the
internal ' marks and comas the function works perfectly.
DataGlue.bindFormatStrings(lb_SubjectAreas, getSelectedSubjectAreas, '#areaId#
#groupId# #subjectArea#');
AddThis Social Bookmark Button