Lookup of user
Lookup of user
I would like to create a simple task table for users of the system. The only thing I cannot figure out is how to make an "assigned to" field which should be a lookup field that uses the built-in users table (which I believe to be membership_users), storing the memberID but showing the email in the drop-down.
Re: Lookup of user
Hi,
this is not possible with the out-of-the box availabel membership tables.
A possible solution would be that you create a "shadow membership_users table" in AppGini that you can reference as you always do.
To handle this table you would have again two options.
1, replace the newly created table that has been generated via the AppGini interface in the database with a view to the membership_users table.
2, Syn the data in the newly created table to the membership_users table.
Solution 1 should be stable and would not need additional efforts,
Solution 2 requires to program the sync of both tables.
Hope that gives you an idea.
this is not possible with the out-of-the box availabel membership tables.
A possible solution would be that you create a "shadow membership_users table" in AppGini that you can reference as you always do.
To handle this table you would have again two options.
1, replace the newly created table that has been generated via the AppGini interface in the database with a view to the membership_users table.
2, Syn the data in the newly created table to the membership_users table.
Solution 1 should be stable and would not need additional efforts,
Solution 2 requires to program the sync of both tables.
Hope that gives you an idea.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Lookup of user
Thanks. So I would go into the database, create a view to the membership_users table, but then how does AppGini know to reference the view?
Re: Lookup of user
Hi,
create the table in Appgini first (e.g. mymembershiptable) with the same settings as the membership_users table. Generate your app,
then go to the database and drop the table (mymembershiptable).
Now create on the database level a view named (mymembershiptable) with select * from membership_users.
create the table in Appgini first (e.g. mymembershiptable) with the same settings as the membership_users table. Generate your app,
then go to the database and drop the table (mymembershiptable).
Now create on the database level a view named (mymembershiptable) with select * from membership_users.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
