Question
IBM
CN
Last activity: 6 Feb 2023 22:35 EST
How to use "contains a page where [when record] evaluates to true" in a when rule
Hello, may I know How to use "contains a page where [when record] evaluates to true" in a when rule?
The requirement is: I want to check in a page list whether any page has a index (a property of the page) is > 0
so, in top level when rule A, I use "contains a page where [when record] evaluates to true" , I do as below for 2nd level [when record] B:
In B, I add a parameter of type page name: DocPage, and define DocPage in "Pages & Classes" as the data class of the pagelist.
Then I use "DocPage.index >0 " in B
However, it does not work, an error is reported in run time. It's saying about class mismatch issue.
Wonder whether the A pass a page type parameter to B (as I guess)? If not, could you kindly share a sample? thanks.