08-05-05 07:45 AM
Maybe try
student_class.text=result[0].STUDENT_FIRST;
or
owner.student_class.text=result[0].STUDENT_FIRST;
TextField.student_first.text does not look right.
Stefan
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Rosenbladt,
Oliver
Sent: Thursday, August 04, 2005 5:47 PM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] flash remoting results problem ***newbie question**
*
Greetings -
I apologize in advance for the basic-ness of this post...this is my first
complex Flash Remoting project.
I am developing an online rolodex system. The first screen is a dropdown
that lists users, and when you click a users name, a new screen with their
details is displayed. All this works fine, until I get to the details
screen.
My problem is that I am not able to use results that are coming back in a
results set from the remote service...I can trace the results, but I cannot
place the individual results "pieces" into the dynamic text fields that I
created for this purpose. Essentially, I am unclear on the syntax needed to
pass information from the results set back to the page on which this
function runs
the name of this screen is "showDetail"
this screen is called from the previous screen by passing the selected item
from the list to the displayItem function in the showDetail class
here is the code:
class showDetail extends mx.screens.Form { private var
detail_ws:mx.services.WebService; private var
detail_wsCall:mx.services.PendingCall;
private var
student_first:TextField,student_class:Te
xtField,student_dob:TextField,st
udent_pref_name:TextField,student_corrid
or:TextField;
public function displayItem(item:Object):Void {
detail_ws=new mx.services.WebService("
<http://xxxxxxxx/services/rolodex.cfc?wsdl>
http://xxxxxxxx/services/rolodex.cfc?wsdl");
detail_wsCall=detail_ws.getStudent(item.INTERNAL_STUDENT_ID);
var owner:Object=this;
detail_wsCall.onResult=function(result:Array):Void
{
trace(result[0].STUDENT_FIRST);
trace(result[0].STUDENT_LAST);
// the traces above display information in the Output window, so data is
getting to this function
TextField.student_first.text=result[0].STUDENT_FIRST;
// the line above DOES NOT display information in the dynamic text
field named "student_class"
};
}
}
Many thanks in advance for any help!
Oli R.
=---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=---------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|