Connecting Tech Pros Worldwide Help | Site Map

Oracle Forms: Disable invoking buttton

Member
 
Join Date: Sep 2007
Posts: 55
#1: May 22 '09
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
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Jun 29 '09

re: Oracle Forms: Disable invoking buttton


Just try this:

1. Make a procedure autonomous using PRAGMA AUTONOMOUS clause and check if it works

else

2. Cal another procedure from procedure 1 and make procedure 2 autonomous and disable the insert button in that procedure.
Reply