We are currently performing maintenance on Appian Community. As a result, discussions posts and replies are temporarily unavailable. We appreciate your patience.
Hi,
I am displaying a decimal value in a!textField as part of an editable grid .
I would like to put some validation if the user enters a text in this field it should throw error or blank out .
a!textField( value: if(todecimal(ri!items[ri!index].currentMonDis)=0,"",dollar(ri!items[ri!index].currentMonDis)), saveInto:{ ri!items[ri!index].currentMonDis, a!save(ri!itemstoken,append(ri!itemstoken,save!value)), a!save(ri!items[ri!index].changeOrdiff,todecimal(ri!items[ri!index].currentMonDis)-todecimal(ri!items[ri!index].lastMonDis)), a!save(ri!itemstoken,append(ri!itemstoken,todecimal(ri!items[ri!index].currentMonDis)-todecimal(ri!items[ri!index].lastMonDis))) } ),
at present , if we enter any text it throws the error message below
Error Evaluating UI Expression Expression evaluation error in rule 'eds_showitemroweach' (called by rule 'eds_initiaterbepaymentreview') at function a!applyComponents [line 188]: A null parameter has been passed as parameter 1.
Can you provide any ideas to prevent user entering text or symbols in this field ?
Discussion posts and replies are publicly visible
HI, You can use a!floatingPointField() component, The system automatically throw a validation when enter characters
An Error Has Occurred Expression evaluation error in rule 'eds_showitemroweach' (called by rule 'eds_initiaterbepaymentreview') at function a!applyComponents [line 188]: An error occurred while executing a save: Expression evaluation error at function 'append' [line 26]: Could not cast from Number (Decimal) to Dictionary. Details: CastInvalid
Thanks . i tried that but i am getting a casting error shown above
Thanks i removed the extra save and changed to floating point field . still when i type any text , it is giving this error