Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82391

Cascading rollback and default cancel button

$
0
0

Hello, I have the following entities:

A one to many B
B one to many C

In a specific screen I show a top level dataview which includes A attributes and if existing C attributes. Whenever changes are made to the form I want to present the user with 2 options, cancel (rollback all changes) or save (save all changes). This works perfectly with the default buttons Save and Cancel. However a hard business requirement is  that upon closing all kinds of business logic gets fired concerning which agent is currently viewing the form, so ive made custom action buttons mimicking save and cancel and also handeling the logic. In the cancel microflow I say rollback entity A, which works however changes made in C are not being rolled back.. which does happen when using the default cancel button.

Options I have considered:

Rollback all entities in a single microflow with a loop construction that checks if associations exists and if so do the rollback.

Find a way to call the default cancel behaviour from within the custom cancel microflow.


Is there any better approach for this situation? thanks in advance,

 

Selwyn de Jonckheere

 

 

 


Viewing all articles
Browse latest Browse all 82391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>