Action is triggred when i click the Cancel button on the right top edge(X)

1
I am new into Mendix and building my first Pilot application, I have created a Edit page with POP up layout, where i have used save button and cancel with microflows every thing is working as expected the data is also getting saved correctly the concern is, - whenever I choose a drop down with diffrent element and click the cancel button , thats gets saved! ( this should not happen) - Change in the data which leads to event trigger and validation message pops up the Cancel button do not work any more.
asked
3 answers
1

Hi Ashrith,

First, welcome to the Mendix community! Did you replace the default Cancel button with an own Action button to call a microflow? In that case, you could add the "Rollback" activity in that microflow. Did you use On Change microflows, for example at the dropdown? Did you commit inside those?

Hopefully this helps a bit.

Kind regards, Johan

answered
0

Seems that you do have an on change event on the drop down which commits the object. Check in your widget properties the on change event.

answered
0

Thanks Johan and Rene,

This works! I am no more getting on change problem, 1- Removed the required validation from the drop down as this is taken care in Microflow. 2- Added the roll back in the cancel microflow.

However when i change a Drop down(with no events or validation) and Click the Cancel Button(X) its gets saved and refreshed in the main page.

Regards Ashrith

answered