I am working with a three‑level Page List structure. Within PageList2, there is a nested PageList3, which is rendered in the UI as a table. PageList3 contains two columns: Type and Number of Devices.
For each load type, I need to copy the corresponding Number of Devices value into another property and make it available in real time on the UI for further processing.
I attempted the following approaches:
Used a Declare OnChange rule with the watched property set to PageList2.NoOfDevices and invoked an activity, but the declare rule is not firing at all.
Tried a Declare Expression rule by setting DesiredProperty = ValueOf(PageList.NoOfDevices), but the expression does not validate or allow saving.
I cannot move this logic to a Post Data Transform, as the value is required immediately on the UI for other operations.
Could someone please advise on the correct approach to handle this scenario?
The first option will just take the count of the page list 3 entries. You have to ensure that your type and number of devices are marked as required during entry
The second option will take the count of entries in page list 3 with a certain condition if you wish to, else you can give @when(Always)
You can choose any one of the option based on your requirement.
Below is my structure
Work case → .Questions() → .Fields()
I should be able to get the count of fields setup for each question on the question level.
Below is an working example with two levels of pagelists. It should work for you as well
If your requirement is anything different, please share any mockups or detailed requirements so that we can suggest more options.