Home » Developer & Programmer » Forms » Enable and Disable the button
Enable and Disable the button [message #459741] Tue, 08 June 2010 03:42 Go to next message
dhanasurya
Messages: 33
Registered: May 2010
Member
Hi,
I have one requirement i.e i have one db block[emp] which displays emp details in tabular form.I have one checkbox in the same block.and i have a split button in the form.

my requirement is i want to split only one line if checkbox is checked.i.e
if i check 1 record split button should be enabled for only that record.if i check next record for that record split button should be disabled.

How can i do this?

Help me out.

Thanks,
Re: Enable and Disable the button [message #459770 is a reply to message #459741] Tue, 08 June 2010 05:01 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Have the when-checkbox-checked trigger increment and decrement (as appropriate) a counter that would be either a global variable or an item in another datablock. When the counter is 1 enable the button, when it's anything else disable the button.
Re: Enable and Disable the button [message #459790 is a reply to message #459770] Tue, 08 June 2010 06:08 Go to previous messageGo to next message
dhanasurya
Messages: 33
Registered: May 2010
Member
Could you please provide me the code.
Re: Enable and Disable the button [message #459795 is a reply to message #459790] Tue, 08 June 2010 06:11 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I'm sure you can work it out from my description.
Give it a try, if you get stuck post what you tried.
Re: Enable and Disable the button [message #459840 is a reply to message #459795] Tue, 08 June 2010 08:22 Go to previous message
dhanasurya
Messages: 33
Registered: May 2010
Member
I have done my requirement.Thanx for the idea..
Previous Topic: FRM-40505: unable to perform query error
Next Topic: ORACLE 9I FORMS AND REPORTS
Goto Forum:
  


Current Time: Fri Sep 20 08:40:37 CDT 2024