Hi,
I am using a CFC here that has a method that accepts a userId, it then
runs an sql query and retrieves all the data associated with the user
like:
FirstName
LastName
Email, etc
I am trying to find out how I can set the form fields "text" property
equal to that of the Array that is returned from my RemoteObject Call.
I have this code in my "main" application file. I did a trace on the
employeeDataArray and it has all the details for that user so the remote
call is working fine, I just cant figure out how to bind the values in
the array to the various form fields on "myForm" which is the "id" I
have given the form.
private function populateEmployeeProfileForm(
event:flash.events.Event ):void {
appViewStack.selectedChild=vs_EmployeeProfile;
employeeDataArray = ApplicationState.instance.employeeArray;
// do I do this?? frmEmployeeProfile.myForm ??? didnt work
for me
}
<mx:ViewStack id="appViewStack" height="100%" width="100%">
<mx:Canvas id="vs_EmployeeProfile">
<comps:globalToolBar id="globalToolBar" width="100%" />
<forms:EmployeeProfile id="frmEmployeeProfile" x="485"
y="341" width="420"/>
</mx:Canvas>
</mx:ViewStack>
-Malik