Hi Lach,
the form field is a textarea.
from what i understand, i was using bidirectional binding.

in other words, the results from my RO set the model.
the model is bound to the form fields.
the form fields are bound to the model.
Then i send the model back to the server to save.

The strange thing was, the fields that did not work are in a tab nav. 
the other fields worked.

I have all but scrapped this and am now attempting to just use an 
object to store the data in and pass back to the server.
this is working but i have 1 major issue.

i have a list box and i need to set items to be selected. i can not 
get this to work. do you know how to do this? can anyone give me a 
good example??

thanks again everyone.

tim



Here is the result function:
private function getByID_result(event:ResultEvent):void
   {
    var detail:Users = event.result as Users;
    this.profileModel = detail;   // my model
     //Alert.show(ObjectUtil.toString(this.profileModel.myTags));
     //this alert will show the data, but it will display in the text 
fields.
   }
 
Here is my model:
 
<assets:Users id="profileModel">
  <assets:Birthday>{dob.selectedDate}</assets:Birthday>
  <assets:Gender>{gender.selectedValue as String}</assets:Gender>
  <assets:AboutMe>{aboutMe.htmlText as String}</assets:AboutMe>
  <assets:Occupation>{occupation.text as String}</assets:Occupation>
  <assets:SexualPreference>{sexualPref.selectedValue as String}
</assets:SexualPreference>
  <assets:IMAddress1>{IM1_Name.text as String}</assets:IMAddress1>
  <assets:IMAddress2>{IM2_Name.text as String}</assets:IMAddress2>
  <assets:IMType1>{IM1.selectedItem.data as int}</assets:IMType1>
  <assets:IMType2>{IM2.selectedItem.data as int}</assets:IMType2>
  <assets:myTags>{tags.text as String}</assets:myTags>
  <assets:myGenres>{genres.selectedIndices}</assets:myGenres>
 </assets:Users>
 
<!-- textarea that refuses to show data.. i have had it bound to the 
model -->
<mx:TextArea width="100%" height="196" id="tags" y="26" 
text="{profileModel.myTags}"/>
 
 

--- In [email protected], Lachlan Cotter <[EMAIL PROTECTED]> wrote:
>
> Hi Tim,
> 
> What kind of control is myTags bound to?
> 
> Cheers,
> Lach
> 
> 

Reply via email to