• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

token Question

Participant ,
Sep 13, 2010 Sep 13, 2010

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

Views

783

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 13, 2010 Sep 13, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 16, 2010 Sep 16, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 14, 2010 Sep 14, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 17, 2010 Sep 17, 2010

Copy link to clipboard

Copied

LATEST

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

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines