0 Replies Latest reply on Oct 17, 2010 12:49 PM by $Nith$

    Model mapping issue

    $Nith$ Level 4

      I have a data model something like this.



           <Name>some data</Name>

           <Email/>     // Note there is no email




      I'm mapping these data to two TextInput fields as


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

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




      Now, the name field shows the name properly because it has some data in Name tag; However, the email is showing as [object Object].


      How can I just display a blank text if there is no data in the model?


      Thanks for any advise..