Another option is to set the binding yourself. So in this case, TextInput is binded to item.name but item.name is not binded back to the TextInput, so I'd create an explicit binding for that as follows:
<mx:Binding source="ti.text" destination="item.name"/> -Mete --- In flexcoders@yahoogroups.com, Robert Cadena <[EMAIL PROTECTED]> wrote: > > Hi Anthony, > > Binding works one way. You need to explicitly set the value of the item > to the textInput field's value. > > here's some pseudocode: > > public var item:Item; > > <mx:TextInput id="ti" text="{item.name}" /> > > ... > var item:Item = ds.getItem(); > ...[later] > private function handleSubmitClick():void > { > item.name = ti.text; > ds.commit(); > } > > The text input does not change the value of the thing it is bound to, it > just listens for changes to that property and sets its own text based on > the new value. > > there are other ways of getting the text in an input field to populate > the property of the item you want. > > i saw you registered at laflex.org. maybe i'll see you at the next > meeting. check out the blog for time and location info. > > good luck. > > /r > http://www.searchcoders.com/flex/ > http://labs.searchcoders.com/dashboard/demo/ > http://www.laflex.org/ > > > > > asherritt9 wrote: > > Finally figured out how to get dataservice.getItem() to work. > > > > I've bound it's result to a textInput, but changes to the interface are > > not affecting the DataService on commit. > > > > Does any one have a sample work flow for getting then updating data? > > > > Thanks > > > > -A >