How to administor the forms with role to user [message #130567] |
Mon, 01 August 2005 03:09  |
samit_gandhi
Messages: 226 Registered: July 2005 Location: Hong Kong
|
Senior Member |

|
|
We have different users. I have the forms ready to give him but how should i control the access of the forms to unauthorise users. I dont want to give every form to every user. How to assign the roles to each users with the forms.
If possible send the sample form and the database starting from the log in screen
My e-mail address is samit_gandhi@yahoo.com
Samit Gandhi
|
|
|
Re: How to administor the forms with role to user [message #290096 is a reply to message #130567] |
Thu, 27 December 2007 06:51  |
mintomohan
Messages: 104 Registered: November 2006 Location: India
|
Senior Member |
|
|
hi,
you can create a table containing two columns user & form
and add the users and the form which the user has access to this table.
then you can create a function like user_has_access(user,form) return boolean.
now you can add the following code in the when-new-form-instance of all forms
if user_has_acess(:GLOBAL.application_user,:SYSTEM.CURRENT_FORM) then
-- do something
else
exit_form;
end if;
Hope this is clear.
Minto
|
|
|