Hi, noob question here.
I need to access some xml data obtained via an httpservice in a parent state.
So far in my data attribute for the field I have
data={parentDocument.parentDocument.datarequest.lastResult.physician.lastname}"
this seems to work but its just plain ugly and if i change any names in the xml
etc i would
have to edit every field I used this reference in so...
I tried putting a script in this file that obtained a reference to the
parentobject and put it
into a local var. At runtime I get a null object error when I use the following
reference:
data="{xmldata.physician.lastname}"
<mx:Script>
<![CDATA[
public var xmldata = parentDocument.parentDocument. datarequest.lastResult;
]]>
</mx:Script>
I assumed that obtaining a reference was similar to javascript but apprently
this appears
not to work. Any ideas please?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/