Home » Developer & Programmer » Forms » How to give the access of the buttons to selected user
How to give the access of the buttons to selected user [message #133798] Mon, 22 August 2005 05:02 Go to next message
samit_gandhi
Messages: 226
Registered: July 2005
Location: Hong Kong
Senior Member

Dears

I have Seven buttons on my every form. Add, View, Modify, Delete, Save, Clear, Exit. I have two types of user one is administrator and other is limited. I want to restrict the limited user to acess the buttons in the every form. He can not access the Modify & Delete button of the every form.

Will it be possible?? If yes, then how? If no, then how to solve this problem. I am totally confused in it.

Please advise.

Samit Gandhi
Re: How to give the access of the buttons to selected user [message #133802 is a reply to message #133798] Mon, 22 August 2005 05:11 Go to previous message
kiran
Messages: 503
Registered: July 2000
Senior Member
One option for this to enable and disable the buttons based on the users.

assume that you have two users "A" and "B",you can write something like following to control their access over the buttons.

If uid='A' then
SET_ITEM_PROPERTY(MODIFY_BUTTON,ENABLED,'PROPERTY_TRUE');
SET_ITEM_PROPERTY(DELETE_BUTTON,ENABLED,'PROPERTY_TRUE');
else if uid='B' then
SET_ITEM_PROPERTY(MODIFY_BUTTON,ENABLED,'PROPERTY_FALSE');
SET_ITEM_PROPERTY(DELETE_BUTTON,ENABLED,'PROPERTY_FALSE');
end if;
end if;

I didn't test this code.Do check before running.

--Kiran.


[Updated on: Mon, 22 August 2005 05:12]

Report message to a moderator

Previous Topic: inserting Date value
Next Topic: address bar
Goto Forum:
  


Current Time: Fri Sep 20 01:41:13 CDT 2024