Hi Manish,
yes I'm using binding.
Thanks for your suggestion, but if I have choice between your and mine
solution, I prefer mine ;-)
Perhaps a custom TextInput and a custom Label could be a solution, but I
don't want to code them.
Greets
Christoph
Manish Jethani wrote:
> On 6/3/05, Christoph Guse <[EMAIL PROTECTED]> wrote:
>
> > in my app I use TextInputs and Labels to show results given by remote
> > objects. Sometimes a returned VO doesn't have a value, for example the
> > name value is null. The TextInputs and the Labels show in this case
> > "null". I coded a little function to prevent this:
>
> [...]
>
> > Is there a more elegant way to make TextInputs and Labels show nothing
> > if a value bound to the text property is NULL?
>
> Assuming you're using binding, you could use an expression like this:
>
> <mx:TextInput text="{obj.name == null ? '' : obj.name}" />
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
****************************************
Christoph Guse
L�hstra�e 34
41747 Viersen
Tel. 0 21 62 / 50 24 066
Mobil 01 72 / 160 74 84
VoIP 0 12 12 / 39 64 48 831
****************************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/