Hi,
 
You will have to set the data in the TextInput manually and verify the value before you set it, like so:
 
myTextInput.text =  ( myData == undefined || myData == null || myData == "null" || myData == "" )? "": myData;
 
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
 


From: jamiebadman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 10:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Hiding 'Null'...

Hi,

I have a datagrid and some detail boxes (mostly textInput). If a
column is null on the grid, it shows as an empty cell - which is what
I want (looks best that way) but the data is shown as 'null' in the
textInput box.

Is there an easy way to prevent this from happening - and simply not
showing anything at all in the textInput box when there's a null in
the data ?

The 'null' appears as actual text in the textInput box btw - so if I
then save the data, I'll get the string 'null' saved to the DB!

Thanks in advance,

Jamie.





AVIS IMPORTANTWARNING

Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme.

The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.




Yahoo! Groups Links

Reply via email to