Home » Developer & Programmer » Forms » How to disable specific button in a tabular form (Forms 6i)
How to disable specific button in a tabular form [message #386593] Mon, 16 February 2009 03:43 Go to next message
sindikalac
Messages: 52
Registered: November 2008
Location: Europe
Member
Hi

I have a tabular form with a button for each record. And I would like to disable a button next to the first record.
I know how to disable a record for example:

SET_ITEM_INSTANCE_PROPERTY('DB.ID',1,UPDATE_ALLOWED,PROPERTY_FALSE)

but I don't know how to disable a button next to that record.

I tried it with the above statement, it doesn't work.
Re: How to disable specific button in a tabular form [message #386615 is a reply to message #386593] Mon, 16 February 2009 04:31 Go to previous messageGo to next message
Littlefoot
Messages: 20893
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Could you post a screenshot (mark a button you'd like to disable)?

Anyway: if I understood what you are saying, you'd like to disable button which belongs to the first record. If so, perhaps you might use such a code in the WHEN-BUTTON-PRESSED trigger:
if :system.trigger_record = '1' then
   null;
else
   do_whatever_you_are_doing_now;
end if;
icon7.gif  Re: How to disable specific button in a tabular form [message #386662 is a reply to message #386615] Mon, 16 February 2009 08:39 Go to previous message
sindikalac
Messages: 52
Registered: November 2008
Location: Europe
Member
Thanks, you got it right. I wanted to disable button next to the first item. Your answer helped, once again Smile.
Previous Topic: which one have priority-grants defined in forms or database?
Next Topic: How to determine we are on the first record?
Goto Forum:
  


Current Time: Mon Dec 05 04:39:06 CST 2016

Total time taken to generate the page: 0.10234 seconds