Use a non persistent helper object as parameter on the pages. In this helper object you can store the count values. Now on the buttons use a nano or microflow to adjust the counters and open the next page passing the non persistent helper object again as parameter. This way in the end you have the correct values because you pass the object along in the process which hold the current count.
Regards,
Ronald
You do not need two entities.
Instead:
Example: WizardContext
Attributes:
Count (Integer)Pass this same object across all 4 pages.
Button YES → Microflow:
Count = $WizardContext/Count + 1Button NO → Show Page 2 (no change)
Button YES → Microflow:
Count = $WizardContext/Count + 2Button NO → Show Page 3 (no change)
Same pattern.
Add a Data View or Microflow:
Retrieve Fruits with XPath:
[ IndexNo = $WizardContext/Count ]
Display the Name.
Mendix passes objects by reference between pages.
As long as you pass the same object, the updated count is carried forward automatically.
Short Answer:
Use one Non-Persistent context object, update Count in microflows, pass it to next page, and on final page retrieve Fruit using XPath [IndexNo = $Count].