How to disable programmatically created Submit Button in ProcessFormRequest

Hi All,
I'm working on an issue where i have created an Upload button Programmatically. The upload button should get disabled after it is clicked. The code for the upload button creation is as below. This has been added in the processRequest of CO.
OASubmitButtonBean oasb;
oasb =
(OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,
OAWebBeanConstants.BUTTON_SUBMIT_BEAN,
null,
"BUTTON_SUBMIT");
oasb.setID("Upload");
oasb.setUINodeName("Upload");
oasb.setEvent("Upload");
oasb.setText("Upload");
Now, when i handle the upload button click in the processFormRequest, i should also disable the button at the end. I followed the below method in the processFormRequest but it threw a null pointer exception at the point where i have disabled the button.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
String strEvent = pageContext.getParameter(EVENT_PARAM);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (strEvent.equals("Upload"))
OASubmitButtonBean oasb2 = (OASubmitButtonBean)webBean.findIndexedChildRecursive("Upload");
oasb2.setDisabled(true); --- this is where the null pointer exception gets thrown
I'm not sure if this is the way to go about it. Could you please let me know how to handle the above request?
Regards,
Shreyas
Edited by: user11258661 on Mar 28, 2012 7:15 AM

Hi Ram,
Thank you for the response. I have created the button programmatically. So I'm not sure how to add the newly created button to the webBean as child. I'm new to OAF. So could you please elaborate. A code snippet might help.
Thanks in advance.
Regards,
Shreyas

Similar Messages

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • How to Disable the Add & Review Button

    How to Disable the Add & Review Button
     *Updated with the correct ISF  code (the previous code, in case you saved it, was to actually  escape apostrophes.  That will be posted  seperately. 
    Note that this solution might not work in your environment - you might have to modify it based on your installation.
    Enjoy! 
    Common_disableAddAndReviewButton()
       if ( Moment == 'ordering' )
            var theForm = document.forms[0];
            var buttonCt = 0;
            for( i = 0; i < theForm.elements.length; i++ )
                 if( theForm.elements[i].type == "submit" )
                    if ( buttonCt == 0 || buttonCt == 2 )
                        theForm.elements[i].disabled = true;
                         theForm.elements[i].style.visibility="hidden";                  
                     buttonCt++;              

    This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    You need to use the right arrow on the remote to go all the way to the right. The submit button will be highlighted and you can then press select on the remote to proceed.

  • How do I make a submit button work on a mobile oriented page?

    How do I make a submit button work on a mobile oriented page?  I have the .html file and the .data file (and one other kind), but it just spins and spins and spins when I try to send the form in (for an absence).  I'd like it to work on all devices.  Help?

    HTML forms don't do anything.  You need a form processing script to gather and process form data.  Which server-side scripts does your web hosting plan support -- php, asp, asp.net, perl?  This will determine which scripts you can use with your form.
    Nancy O.

  • How do you enable 'Create Content' button on 'Add Content' page?

    How do you enable ‘Create Content’ button on ‘Add Content’ page?
    There is new functionality to a ‘Layout’ type personalization page like ‘Sales Dashboard’.
    Bug 4503123 INCONSISTENT WAY OF ADDING USER-DEFINED REGIONS ON WYSIWYG PAGE:
    There’s no way to add custom content to a configurable page.
    Add a “Create Content” button and let the user create a piece of content that extends to a region he creates.
    It says: Fixed->11.5.10.3CU
    In Oracle® Application Framework Personalization Guide Release 11i Part No. B25439-02 it says:
    p 4-5
    If you personalize a non-configurable page (a page that does not have the necessary metadata to personalize its layout) or when you run your application in Accessibility mode (profile option Self Service Accessibility Features (ICX_ACCESSIBILITY_FEATURES) is set to Standard Accessibility), you will not see the Page Layout Personalization page, as shown below. Instead, you will see the Page Hierarchy Personalization page, page 4-12, where you can perform the same personalization functions, using a descriptive tabular user interface.
    It tried this and can’t get it to display.
    Has anyone run accross this before?

    user587952,
    Can you describe your issue in detail forgetting those references for the time being. What exactly are you trying to do?
    Check this from the dev guide:
    In order to be able to take full advantage of page layout personalization capabilities, it is important when you create your configurable page, to use flexibleLayout and flexibleContent regions at all levels when you create the page hierarchy structure under your page layout region. In Oracle Applications, this is required, as it is the coding standard.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to apply style to submit button

    Hi All,
    I am developing an application in struts where I have multiple buttons on a single form. Each button corresponds to different action to be executed, and to achieve this I have used DispatchAction.
    Since I need to submit the data, I am looking for some ways through which I can put some style on submit button, such as putting an image over the submit button,giving it some border, some color and so on. I want to do this through CSS or if not possible through CSS then as inline style.
    I am using struts-html.tld tag library to render all the HTML controls.
    Any idea how to put images over submit buttons, or if putting an image is not possible then how to have style for it so that the look of submit button changes and the user feels as if it is a graphic button.
    Any help is appriciated.
    Thanks.

    You do realise there is an <html:image> tag which
    generates the html graphical submit button (ie <input
    type="image">) ?
    There are two tags in struts:
    <html:img> - generates an image tag: <img src="...">
    <html:image> - generates a graphical submit buttonYea, I do know this. But the problem is I don't have one submit button in my page. There are mroe than one buttons and each button calls a different method of the Action class. I could not get a way to pass the parameter name and parameter value using
    <html:image> tag.
    To be more clear, I need CRUD operations in one page and they all refer to one Action class. If I use html:image tag, I can't call seperate functions as it will then call the execute method. Also I don't want to have any javascript to call the relevant method from the Action class.
    Is there any way out? I am not a pro in struts, just s beginner, so any help is more than appreciated.
    Thanks.

  • Create Submit button programatically

    Hi,
    Can some body help me with creation of submit button programatically.under page button bar region(Existing region on page)
    Thanks

    Hi,
    Please refer http://apps2fusion.com/apps/oa-framework/214-sample-code-add-submit-button-using-oa-framework-extension
    before adding button to pagebutton bar first get handle to page button bar region, then create submit button through code and then add it to page button bar.
    Regards,
    Reetesh Sharma

  • How can i put a submit button in a survey and it send to my email

    how can i put a submit button in a survey and it send to my email?

    Hi williamm89908146,
    You need to open the form in which you want to put the submit button,
    then you have to choose 'Add new field' under Tasks pane on the right Hand side of the window.
    Choose 'Ok' Button
    Place the button at desired Location
    Change the field name to 'Submit'
    Click on 'All Properties' (Button Properties window Will open up)
    Click on Actions Tab and then on 'Select Action:'
    Choose 'Open a web Link' from the Drop Down Menu and then Click 'Add'
    another window will appear in which you have to type this:    mailto:[your email address], eg: mailto:[email protected] later click close
    Click Close Form editing on the right hand side of the window
    Clicking on the Button would open up your default email client and your address would appear in 'To' field.
    Please feel free if you face any challenges in following through these steps.
    Regards,
    Rahul

  • How to disable programmatically an item in a Descriptive flexfield

    Hi friends,
    doy you know How to disable programmatically an item in a Descriptive flexfield using CUSTOM.pll?
    The problem is that I need to do it under the WHEN-NEW-RECORD-INSTANCE event, and the item (based in an attribute column of a database table) hasn't a canvas asociated at that moment....
    Do you have any example?
    Thanks,
    Jose.

    Hi Prashant,
    mmm yes, for now there are two fields it he DFF window.. but in a future .. may be more..
    I've found a function:
    fnd_flex_key_api.enable_column that may be properly for that, but I don't know what to pass in the the first parameter (flexfield IN flexfield_type)...
    I mean: I suppose is the "name" for my DFF but.. how can I get it?
    Thanks,
    jose.

  • How do I set the Submit button to send the information directly to a specific email address?

    How do I set the Submit button to send the information directly to a specific outside email address? It isn't clear to me where or how it says that you can do this.

    Is this for a web form or a PDF? If PDF, you would have to use Acrobat to edit the form and replace the submit button action with either a "Submit a form" action using a mailto type URL, or use the doc.submitForm statement to do the same.

  • How do you insert a submit button into your form?

    How do you insert a submit button into a form?

    Hi,
    The submit button is included automatically. If you are distributing your form as HTML you can use the Test tab to preview your form. If you are distributing your form as PDF, you would need to generate the PDF to see the submit button.
    Regards,
    Brian

  • Created "submit" button not working with Reader

    I have created a submit button that will submit an email based off dropdown menu selection.  While it works great on my computer (Pro).  A user with Reader (9.0) can fill out everything until the (java created) submit button.  The user computer hangs...  Any ideas of what the issue could be?
    Thanks,
    Jo

    Thanks for the feedback, I figured it out.  Silly me, didn't have the form user-enabled.
    Jo

  • Once you create a printable form in Acrobat Pro 9, how do you add a submit button?

    I have created printable PDF forms, but don't know how to add a submit button so they can be filled out and emailed. Currently if the people filling them out only have Reader they can only be printed out. They cannot be saved, and they cannot be emailed. Can the submit functionality be added in Adobe Acrobat Pro, or do you have to do that with a third party software?

    Yes, you can use the Extend Features in Adobe Reader, shown here but grayed out since I don't have a form open.
    When you do that, the people filling out the form will be able to Save a copy of the form for themselves and to forward a copy of the PDF to you. You might want to make a copy of the form first if you might have to make changes in the future since the Extended form cannot be edited directly.

Maybe you are looking for