Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextInput box and Data provider

Status
Not open for further replies.

RosieGp

Programmer
Jun 23, 2009
83
US
I have Text input box for the user to enter the heading for a new record in NewRecord form.
Like:
<mx:TextInput text="Enter Subject Here"/>
and then it is saved in the Database...
I have another form called ChangeRecord so that the user can change the heading or Subject..
How do i populate the name already in DB in the TextInput Box above... There is no dataProvider pram in TextInput...
I have the following:
Code:
[Bindable] public var NR:ArrayCollection;
private function resultNR(event:ResultEvent):void{
           NR:ArrayCollection(event.result);
}

<mx:TextInput text="Enter Subject Here"/>

Any help is appreciated.
 
You might want to use something like this:

Code:
<mx:Script>
<![CDATA[
[Bindable] private var textVal:String = "Hello";
]]>
</mx:Script>

...
<mx:TextInput text="{textVal}" />

of course, you will need to have perhaps a method that will dynamically change textVal's value.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top