Re: [flexcoders] BindingUtils, How to detect null values when the data type is Number???
bindSetter? Cheers, Ralf. On Mon, Sep 1, 2008 at 6:32 AM, Josh McDonald [EMAIL PROTECTED] wrote: Numbers can't be null, and you might need to use your own watcher function if you'd like to return NaN rather than 0 when the text is empty. -Josh On Mon, Sep 1, 2008 at 2:08 PM, jitendra jain [EMAIL PROTECTED] wrote: Hi Coders, I have the following decalration in my User defined component . prodQty rawQty are Number datatypes. txtProdLot and txtRawLot are TextInputs in a Repeater Container,allItemList is an ArrayCollection BindingUtils.bindProperty(allItemList[i],prodQty,txtProdLot[i],text); BindingUtils.bindProperty(allItemList[i],rawQty,txtRawLot[i],text); Everything works fine. But when my TextInput having no data that is empty, it binds zero values. How can I stop that?? When Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] BindingUtils, How to detect null values when the data type is Number???
Hi Coders, I have the following decalration in my User defined component . prodQty rawQty are Number datatypes. txtProdLot and txtRawLot are TextInputs in a Repeater Container,allItemList is an ArrayCollection BindingUtils.bindProperty(allItemList[i],prodQty,txtProdLot[i],text); BindingUtils.bindProperty(allItemList[i],rawQty,txtRawLot[i],text); Everything works fine. But when my TextInput having no data that is empty, it binds zero values. How can I stop that?? When Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798
Re: [flexcoders] BindingUtils, How to detect null values when the data type is Number???
Numbers can't be null, and you might need to use your own watcher function if you'd like to return NaN rather than 0 when the text is empty. -Josh On Mon, Sep 1, 2008 at 2:08 PM, jitendra jain [EMAIL PROTECTED]wrote: Hi Coders, I have the following decalration in my User defined component . prodQty rawQty are Number datatypes. txtProdLot and txtRawLot are TextInputs in a Repeater Container,allItemList is an ArrayCollection BindingUtils.bindProperty(allItemList[i],prodQty,txtProdLot[i],text); BindingUtils.bindProperty(allItemList[i],rawQty,txtRawLot[i],text); Everything works fine. But when my TextInput having no data that is empty, it binds zero values. How can I stop that?? When Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]