Group dedication

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
weitling
Posts: 3
Joined: 2013-06-28 04:37

Group dedication

Post by weitling » 2013-07-15 09:20

Hello
I have 4 groups. and the member has the following permissions in there own group. Create new record, View all records in the group, Edith all records in the group, Delete own records in the group.
But if I create as an admin (member of the admin group) a record in group 2 how can i assign this for the users in group 2 (members of group 2) at the same time im creating this record. (not in the admin page)

Best regards
Weitling

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Group dedication

Post by a.gneady » 2013-07-22 01:32

This is currently not directly doable in AppGini-generated code ... but you can do this using a hook ... you could add a field to the table where you can enter the group name (or select it from a menu by setting the added field as an options list in AppGini) ... then write code in the tablename_after_insert hook to change the record owner to the group specified in the group field.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply