Disable invoking button [message #404640] |
Fri, 22 May 2009 10:19 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
eeriehunk
Messages: 16 Registered: May 2009
|
Junior Member |
|
|
Hi All,
I wrote a procedure to clear all my text fields and disable all buttons in my form. And I call this procedure in a button (insert button). when I presses the insert button, after all my button operations, all the text fields get cleared and all my buttons get disabled, except my insert button. I do have code to disable this button in my procedure as well. But for some reason, every other button gets disable except the button which invoked the procedure.
Is there a way to disable the invoking button as well ?
I did try using the clear_form functionality available in the Oracle Forms by default, but no use.
Kindly suggest.
Regards,
Aj
|
|
|
|
Re: Disable invoking button [message #404646 is a reply to message #404641] |
Fri, 22 May 2009 10:43 ![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) |
eeriehunk
Messages: 16 Registered: May 2009
|
Junior Member |
|
|
I apologize, let me rephrase my question. I am disabling most of the buttons. For example, I have a insert button, which performs an insert. After the insert operation is complete, I want this button to be disabled so as to avoid the user accidentally pressing the button twice.
Regards,
Aj
PS. Kindly ignore my other two postings, they happened by accident, the post button was not responding, so I refreshed the page and submitted it again.
|
|
|
Re: Disable invoking button [message #404954 is a reply to message #404640] |
Mon, 25 May 2009 13:41 ![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) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
The problem you've got is you can't disable the item where the cursor is. If you've pressed a button then the cursor is on the button and you can't disable it.
So you need to move the cursor somewhere else first (using go_item).
|
|
|
Re: Disable invoking button [message #404965 is a reply to message #404954] |
Mon, 25 May 2009 17:14 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
eeriehunk
Messages: 16 Registered: May 2009
|
Junior Member |
|
|
Perfect ! It worked, I called both the clear_form function with another clear function that I created using a trigger that disabled the button. The first function removed the focus and the second function disabled the button.
Thanks a lot.
Will be back with more questions.
Regards, Aj
|
|
|