Home » Developer & Programmer » Forms » How to administor the forms with role to user
How to administor the forms with role to user [message #130567] Mon, 01 August 2005 03:09 Go to next message
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 Go to previous message
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
Previous Topic: need help
Next Topic: Hot key in developer 6i
Goto Forum:
  


Current Time: Mon Mar 10 17:47:04 CDT 2025