Block second add if one record

Post Reply
crash
User
Posts: 185

Block second add if one record

Post by crash »

I’d like to see an option that prevents the user from adding a second record if there is already one record in the table.

This is useful for organizations with admins that register as a user and then add the details of their structure/group etc..

Currently we have to hide the add button etc.. this doesn’t always work so well in all the views and then the user sees the plus button and adds there structure a second time. Which is especially a problem if we have more than one user looking after the same structure.

Thanks


MichaelG
User
Posts: 1185

Post by MichaelG »

You can simply add your codes in Row_Inserting to check if any record exists first.


crash
User
Posts: 185

Post by crash »

I mean to hide the add buttons if a records exists.
It's common to see database users ask their members to add their info, but if the buttons keep showing the the users keep adding


MichaelG
User
Posts: 1185

Post by MichaelG »

You can use Server Events to hide the add button if record exists.


Post Reply