×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

TextInput box and Data provider

TextInput box and Data provider

TextInput box and Data provider

(OP)
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.  

RE: TextInput box and Data provider

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.


 

www.fuzzysiberians.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close