Copy link to clipboard
Copied
If I return a query result in a value object i.e.
getCustomersEmailResult.token = customersService.getCustomersEmail(emailInput.text);
I can bind the value to the text value of a TextInput field
text = "{getCustomersEmailResult.lastResult.Name}"
but I can not assign it in the function following the call i.e.
TextInput.text = getCustomersEmailResult.lastResult.Name;
Why?
Thanks
Dan Pride
Copy link to clipboard
Copied
This appears to be a Flex question. Please try the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion
Copy link to clipboard
Copied
???
Its straight flashbuilder ?
Using the new service calls in Flashbuilder to mysql via coldfusion, but the question is absolutely completely flashbuilder.
Copy link to clipboard
Copied
If I am to go exactly by what you have tried,
TextInput is an actionscript class. You should try setting the "text" property of an object of the TextInput class. The name of the object is defined by the "id" property of the MXML declaration of the TextInput Instance.
<TextInput id="myTextInput"/>
myTextInput.text="MyTEXT"
Hope this helps
Balakrishnan V
Copy link to clipboard
Copied
You can do so by adding a result event handler to the CallResponder: getCustomersEmailResult
<CallResponder id="getCustomersEmailResult" result="resultHandler(event)" />
protected function resultHandler(event:ResultEvent):void
{
TextInput.text = getCustomersEmailResult.lastResult.Name;
// you can get the result from the event parameter also
}