Is there any function to check whether the entered input is non-numeric or numeric?Thanks!...
OriginalPostID-106178
Discussion posts and replies are publicly visible
This appears to fail when a numeric string is passed against integer and decimal valid types
contains( touniformstring({0,1,2,3,4,5,6,7,8,9}), a!forEach( enumerate(len(trim(ri!data))), charat(trim(ri!data),fv!index)))
i think this can solve the problem mentioned by you
Hello Mike used your suggestion also added some my inputs so as to use the code for all types of rule input limitation is input cannot extend more than integer size then it won't catch int field appropriately. if any comments on this code snippets would help me understand missing cases and scenarios
)a!localVariables( local!b: trim(ri!id), if( a!isNullOrEmpty(tointeger(ri!id)), false, if(int(ri!id) = local!b, true, false) ) )
a!localVariables( local!b: trim(ri!id), if( a!isNullOrEmpty(tointeger(ri!id)), false, if(int(ri!id) = local!b, true, false) ) )
this would help try it out