Multi-Purpose Button

0
Hello Newer Mendix User,    Am I approaching this correctly? I created a button that has multiple actions, which are called form a microflow.  1. Once the user clicks the button, an email is sent out to a user group notifying them that the user has submitted.  2. Then the user loses the ability to edit the submissions on the data grid and the data grid is view only.    Has anyone ever did something similar and how was this accomplished? 
asked
1 answers
0

Hi Jonathan,

suppose you have request object and 1-1 association with user, and request object has status like submitted, pending etc 

you can see below , put a dataview of request entity above datagrid and make button visible only when request status is not submitted

once user clicks button then change request status to submitted then button won't be visible  thus grid will become read only.

image.png

 

hope it helps!

answered