I have an expression rule which returns data for some ID's and for some it returns 0 items. Based on this rule, I need to display a message to the user.If it returns 0 items, then "in progress". If not, the usual data.
How to check if the rule returns some value or 0. I used isnullorempty, but it didn't work
Discussion posts and replies are publicly visible
post code snippet
Hi hema.mathivathanan , Can you please share your written code. Thanks
try with this code,
create a common rule to check isnull or not and use that rule,
a!localVariables( local!keys:getkeysfromdictionary(ri!data), local!isAllEmpty: a!forEach( items: local!keys, expression: a!isNullOrEmpty(index(ri!data,fv!item,null)) ), not(contains( local!isAllEmpty, false())))
Hi, for that once have checked for null condition then after that you can add in your code that for if ri!inputNum=0, true, false. In this way you can check for 0 as well