insert_allowed [message #431559] |
Wed, 18 November 2009 03:03 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
varosh81
Messages: 178 Registered: February 2008 Location: CHENNAI
|
Senior Member |
|
|
I have developed PERSONAL PROFILE APPLICATION using Oracle IDS10g.In this application i have created two users like admin and enduser.If i login as admin i can edit the column values(I mean to edit the text boxes).beacuse of defaultly insert_allowed property set to as yes.It works fine.
If i login as enduser I dont edit the column values(I mean donot edit the text boxes).So I write the coding like this
begin
if :employee.userid='admin' then
go_block('profile);
elsif :employee.userid='enduser' then
set_item_property(set_item_property('profile.id',insert_allowed,property_false);
select id,name,designation into :profile.id,:profile.name,:profile.designation from profile where id=5049;
end if;
end;
I run the form and i login as enduser display the record of 5049 but i can edit the values.my question is i dont edit the column values(I mean dont edit text boxes)when i login as end user.How to overcome this problem
Thanks and regards
Varosh
[Updated on: Wed, 18 November 2009 03:10] Report message to a moderator
|
|
|
|
Re: insert_allowed [message #431573 is a reply to message #431567] |
Wed, 18 November 2009 04:19 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
varosh81
Messages: 178 Registered: February 2008 Location: CHENNAI
|
Senior Member |
|
|
i login as admin
same as i wrote
set_item_property('profile.id',enabled,property_false);
set_item_property('profile.name',enabled,property_false);
set_item_property('profile.designation',enabled,property_false);
it works fine
but insert_allowed not working
thanks and regards
varosh
[Updated on: Wed, 18 November 2009 04:33] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|