Home » Developer & Programmer » Forms » item property
item property [message #133056] Wed, 17 August 2005 08:52 Go to next message
dmack
Messages: 42
Registered: March 2005
Location: TNT
Member
Hi everyone

I am having some trouble disabling some items on a form.

i have managed to disabled some items like buttons but when it comes to text items it doesn't work. I have checked all possibilities (for instance whether or not it is enabled elsewhere but this does not work). This is an example of the code used

IF :user_group NOT IN ('HD','SD','SS') THEN
show_message('User Only Allowed To Query By Request Number, Report Date, Reporter!');
set_item_property('TESTER_BUTTON',ENABLED,property_false);
set_item_property('SIGN_OFF_BUTTON',ENABLED,property_false);
set_item_property('SD4_SIGN_OFF_DATE',NAVIGABLE,property_false);

set_item_property('SD4_AUTH_DATE',ENABLED,property_false);

ELSE
set_item_property('TESTER_BUTTON',ENABLED,property_true);
set_item_property('SIGN_OFF_BUTTON',ENABLED,property_true);

set_item_property('SD4_SIGN_OFF_DATE',NAVIGABLE,property_true);
set_item_property('SD4_AUTH_DATE',ENABLED,property_true);


Re: item property [message #133062 is a reply to message #133056] Wed, 17 August 2005 09:02 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

hi,
try using the block name with the items.
e.g:
IF :block.user_group NOT IN ('HD','SD','SS') THEN
set_item_property('BLOCK.'SD4_SIGN_OFF_DATE',ENABLED,property_false);

Regards
Re: item property [message #133103 is a reply to message #133062] Wed, 17 August 2005 13:36 Go to previous message
dmack
Messages: 42
Registered: March 2005
Location: TNT
Member
Hi it worked thank you.

But another solution was to set the item property QUERYABLE to false.
Previous Topic: Toolbar doubts Pls help me
Next Topic: Highlighted Text
Goto Forum:
  


Current Time: Fri Sep 20 12:31:21 CDT 2024