Question
Show property in section from penultimate item in Page List
I need show property in section from penultimate item in Page List. For example I have Page List .PaymentSchedule and it contains items with PaymentAmountMajor property
I've already tried something like:
.PaymentSchedule(<LAST> - 1).PaymentAmountMajor
and
.PaymentSchedule(@SizeOfPropertyList(.PaymentSchedule) - 1).PaymentAmountMajor
And nothing works, section just don't want save:
.PaymentSchedule(@SizeOfPropertyList(.PaymentSchedule)).PaymentAmountMajor doesn't exist or is not a valid entry for this ruleset and its prerequisites
How should I do that? Without custom controls or temporary properties
Hi
You cant predict the size of your pagelist while creating your section ,So it is probably not a good idea to try to code like that.
Rather you can try the below approach !
1. Create a placeholder property and use it in the section where you want to display your penultimate pagelist property
2. At runtime, once your users filled up the data on the pagelist or your pagelist is completely populated and available on clipboard, you can use an activity or data transform to reach to the last node of the pagelist
3. And then set the value of the place holder property to the last one of the page list.
Hope this helps.