Dynamic Tab expression rule
So I am trying to have a dynamic page name depending on the number of tasks being displayed in grids. I have set up an if() statement for the page view name and I have the expression rule set up as:
a!queryProcessAnalytics(report: cons!report,
contextProcessModels: rule!ContextProcessModels(),
query: a!query(
pagingInfo: local!pagingInfo,
logicalExpression: a!queryLogicalExpression(
operator: "OR",
filters: {
a!queryFilter(
field: "c8",
operator: "=",
value: ri!orderId,),},),),
).totalCount,
{local!Variable}))
orderId is a rule input and its a integer type, when the code is run, it will give the correct values but other times it gives a value that is too high. I tried doing length(union(local!Variable,{}) but I received an error saying "Invalid types, can only act on data of the same type (Number (Integer), Any Type)", union(local!variable, local!Variable) but that did nothing.
I'm pretty sure my error is in the last line of code I'm just not sure how to match it with an integer value or if there is something else that I am missing. Any help is appreciated! Thank you.
