Number rows restriction - Mendix Forum

Number rows restriction

0

Hi!

  Anyone would know if it’s possible to limit the number of insertions in a Entity? For instance: I have an Entity “Car” that allows at maximum 5 registers of “Passenger”. My idea, for example, after limit reached, hide the “Add” button, for example, to denied new association by user.

 

Many thanks!

asked
1 answers
0

Why not create an microflow behind the add button that first checks the condition and either respond to the user that no more passengers can be added or otherwise just add the passenger? If you want to hide the button you could use the Show by condition widget (https://appstore.home.mendix.com/link/app/2539/First-Consulting/ShowByCondition)

Regards,

Ronald

 

answered