Home » Developer & Programmer » Forms » disabling a button when using tabs
disabling a button when using tabs [message #198833] Wed, 18 October 2006 14:44 Go to next message
destiny
Messages: 2
Registered: October 2006
Junior Member
i have a form with a tab canvas (2 pages) . giving the details of the employee.

in the first tab, i have a list box listing the marital status. in the other tab, i have 2 push buttons one for spouse information and other for children.

now ,when i select single , i want to disable these 2 buttons.
i tried using set_item_property.. but its not working...
Re: disabling a button when using tabs [message #198856 is a reply to message #198833] Wed, 18 October 2006 20:08 Go to previous messageGo to next message
wency
Messages: 450
Registered: April 2006
Location: Philippines
Senior Member

Try to put that code also on When-Tab-Page-Changed trigger.
Re: disabling a button when using tabs [message #198882 is a reply to message #198833] Wed, 18 October 2006 23:41 Go to previous messageGo to next message
shahidmughal
Messages: 91
Registered: January 2006
Location: Faisalabad Pakistan
Member

HI
you have nothing to do you should place your code in when validate item

if status='single' then

set_item_property('itemname',enabled,property_false);

elsif status='married' then

set_item_property('itemname',enabled,property_true);

else
message('Marital Status Is Necessary');
end if;

i have tried it in my employee table i hope it will work for you too.

regards

Muhammad Shahid Mughal


disabling button [message #198912 is a reply to message #198882] Thu, 19 October 2006 02:30 Go to previous message
destiny
Messages: 2
Registered: October 2006
Junior Member
i tried this.. but its not disabling

[Updated on: Thu, 19 October 2006 02:32]

Report message to a moderator

Previous Topic: Check on nulls before commit
Next Topic: too many declarations of '+' match this call ,, help me
Goto Forum:
  


Current Time: Sat Dec 10 10:47:55 CST 2016

Total time taken to generate the page: 0.10534 seconds