Disable Button After First Click

I have a button with PPR attached to it that generates a BI Publisher report within an OAF page. The report is correctly generated upon clicking the button. I also have SPEL defined for the DISABLED property of the button such that it can only be clicked once. I have done this via the suggested propertiesVO. For troubleshooting purposes, the button's disabled property is correctly being set after the first click as long as the BIP report is not generated as part of the process. However, once I put in the code for the BIP report (output is PDF), the button is no longer being disabled after the first click.
Is control transferred in such a way that the PPR is NOT being executed?
If I remove the code that writes the PDF to the servlet as defined by several posts and online references, the button is disabled as expected. However, once the code is put back in for the document to be generated, PPR stops working for the button.
To summarize, each component works separately:
1) SPEL for the disabled property of a button works as expected. After the first click, the button is disabled
2) The BIP report (PDF) is correctly generated by the button
3) If both the SPEL is used in conjunction with the PDF document generation process, the button is no longer disabled after the first click
Please advise.
Regards,
LC

Suggestions?

Similar Messages

  • Disable button when user clicks

    Hi.,
    I am using jdev 11.1.5
    I need to disable button when user clicks the record which contain the value 'No'
    My scenario
    Id          Value
    1            Yes
    2            No
    3            YesThe button should get enabled for the first record which contain value 'Yes'
    In the above table the button should get enabled for
    Id        Value
    1          Yes          //while user clicks the record button must enabledfor 2 and 3 the button must be disabled
    could any one pls help me

    Hi,
    First get the selected value in bean and set it to String attribute,in your value change listener.
            public void customVLC(ValueChangeEvent valueChangeEvent) {
              //write code to get selected value
              this.selectedValue = "No";//Depend on your selected value on above
              AdfFacesContext.getCurrentInstance().addPartialTarget(getCbButton());//Bind button to bean and get UI here to refresh
       private String selectedValue;
        public void setSelectedValue(String selectedValue) {
            this.selectedValue = selectedValue;
        public String getSelectedValue() {
            return selectedValue;
        }in page put as
    disabled="#{YourBean.selectedValue eq 'No' ? true : false}"Here selectedValue keep the state for disable and enable the button
    I hope above information enough to resolve the issue..

  • How do i get the textbox to stop moving around after first click

    I can't figure out how to get the textbox to stop moving after i set the textbox location with the first click. help please?
    protected function txtloc_BTN_clickHandler(event:MouseEvent):void
                    addEventListener(MouseEvent.CLICK,newTxt);
                public function newTxt(event:Event):void
                    addEventListener(MouseEvent.CLICK,newTxt2);
                } //end newtxt
                public function newTxt2(event:Event):void
                    x1 = mouseX;
                    y1 = mouseY;
                    usrtxtlabel.visible;
                    usrtxtlabel.x = x1;
                    usrtxtlabel.y = y1;
                    usrtxtlabel.x;
                    usrtxtlabel.y;
                    //usrtxt.focusRect = true;
                    removeEventListener(MouseEvent.CLICK, txtloc_BTN_clickHandler); //does not work
                public function removeHandler(event:Event):void
            ]]>
        </fx:Script>
        <s:TextInput x="39" y="252" width="142" height="30" id="txtinput" fontFamily="Times New Roman"/>
        <s:Label x="59" y="67" width="104" height="32" text="{txtinput.text}" id="usrtxtlabel"/>
    <s:Button x="394" y="252" label="txt location" id="txtloc_BTN" click="txtloc_BTN_clickHandler(event)"/>

    remove both listeners.

  • How to disable button once user click once in an Applet?

    Hi,
    We are facing an issue with Applet level button.
    User is clicking multiple times on button and we don't want to allow users to click multiple times.
    So that How to disable the button after clicking once.
    Thanks,
    Sandep.

    Since you don't saying what version of Siebel you are on, I assume
    8.0 or later.
    You can use this on if you applet class is CSSFrame, CSSFrameList, or any of their subclasses.
    On the applet add, Applet User Prop:
    Name
    CanInvokeMethod: InvokeWF
    Value
    [DisableButton]='N' OR [DisableButton] IS NULL
    More info here:
    http://download.oracle.com/docs/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps6.html
    On the applet add, Applet User Prop:
    Name
    Named Method
    Value
    "InvokeWF", "SET", "DisableButton", "Y"
    More info here:
    http://download.oracle.com/docs/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps21.html
    Make sure the field DisableButton is active (Use Force Active on BC if the field isn't active)
    Make sure the field has "Immediate Post Changes" set to true on the BC.
    Axel
    PS: Don't use scripts if you can solve the problem with user props, WF, .... Scripting should
    be you last resort.

  • Setting the visibility of a button after a click on a TabbedPane

    I have a page with a Tabbed Pane.
    I would like to set the visibility of a command button when I click on a Tab.
    To do that I put a disclosureListener like this:
    <af:panelTabbed position="above" testId="Tab1" >
    <af:showDetailItem id="Tab1" text="Tab1" disclosureListener="#{prova.apri}">
    <af:outputText value="Table1"/>
    </af:showDetailItem>
    <af:showDetailItem id="Tab2" text="Tab2">
    <af:outputText value="Table2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    In the backing bean I have the attribute bound to the commandButton and the listener method like this:
    public void apri(DisclosureEvent disclosureEvent)
    // Add event code here...
    RichShowDetailItem o =
    (RichShowDetailItem) disclosureEvent.getSource();
    this.commandButton1.setVisible(true);
    this.commandButton1.setRendered(true);
    It doesn't work !! I guess I'm missing something....
    Could someone help me??
    Thanks a lot.
    Alfredo

    Based on the code you provided it does not look like you are using a partialPageTrigger, which would be required in this case.
    --Ric                                                                                                                                                                                                                                                                               

  • Disabled Button after having button pressed

    Hello,
    I have a page with a button "Export".
    When I press this Button I branch on a page with
    a "csv"-region and redirct to first page.
    After saving the report I see the "root" page again and the button "Export" is disabled.
    How can I enable this button?
    Thanks in advance
    Bye Ulrike

    Thanks for the reply,
    I actually tried that first. The problem is that I need the procedure to download a custom CSV file. It works with a redirect to a url. I could not make it work from a page process. There are several threads and a how-to about downloading a csv file. Nothing helped me get it to work from a page process.
    My whole application revolves around the user selecting some items from a report and clicking a button to get a custom csv built and downloaded. The csv has too many columns to be a report download and the columns may be too wide.
    Thanks again,
    Cy

  • Disabled button after redirect

    I have created a page with a region button on it. The button has a redirect to a URL which runs a pl/sql procedure.
    After clicking the button, the procedure runs and I see my original page, but, the button is disabled.
    When I look at the page source, I see that the button has the attribute:
    onClick="javascript: this.disabled=true;"
    How can I keep the button from being disabled?
    Thanks for this wonderful forum.
    Cy

    Thanks for the reply,
    I actually tried that first. The problem is that I need the procedure to download a custom CSV file. It works with a redirect to a url. I could not make it work from a page process. There are several threads and a how-to about downloading a csv file. Nothing helped me get it to work from a page process.
    My whole application revolves around the user selecting some items from a report and clicking a button to get a custom csv built and downloaded. The csv has too many columns to be a report download and the columns may be too wide.
    Thanks again,
    Cy

  • How to disable button after once it is pressed

    i have a button, i want it to be disable after it is pressed for the first time.
    thank you.

    Hi Amoeba
    u should mention forms version & weather the button reside in Multi-Records Block or it's a single record block
    For Multi-Records Block pls use
    SET_ITEM_PROPERTY ('<block_name>.<button_name>',ENABLED,PROPERTY_FALSE);If it's a single record block
    SET_ITEM_INSTANCE_PROPERTY('<block_name>.<button_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);cause SET_ITEM_INSTANCE_PROPERTY doesn't support the enabled property
    Regarding the action Trigger u can create a timer in the button's trigger then in WHEN-TIMER-EXPIRED call the above property to disable it.
    Regards,
    Amatu Allah.

  • Project pause after first click action

    I am using Captivate 2 and I am able to create a
    demonstration where a user needs to click a highlighted spot to
    advance the demo. My click box, captions and highlights are set to
    display for the whole slide. It works in preview mode. I click a
    designated spot and it advances on click. When published everything
    works up until I go to click the first action. It is almost as if
    the click box is not there. When I move the playbar it also never
    advanced to the next slide. Oddly, when I inset a click box into a
    the middle of an older demo with no click boxes, it seems to work
    when published. Any ideas??

    Welcome to our community, dcfergs
    Check the action assigned to your Click Box. The default may
    still be set. The default is "Continue" so if the slide is perhaps
    5 seconds long and the user clicks at maybe 3, after 2 more seconds
    the slide will pause and require a second click to advance.
    Cheers... Rick

  • Hyperlinks Not Working After First Click AND Message Editable in Inbox

    Recently, we have noticed some marketing emails we'd sent out are acting weird when we receive them in Apple Mail.
    We are using a reputable email marketing company to send the messages so I assume the formatting should be OK but occasionally the emails we send out:
    1.) Will allow clicking a hyperlink once but not again. By this, I mean you can click on the link and launch the default browser and visit the link but, if you go back to the message and hover over the link, the cursor is an I beam instead of the link cursor.
    2.) The message, while still in the Inbox, is actually editable! This might be the crux of the link issue since, if Mail is authoring a message, it won't allow you to click on a link (but will once the message has been sent and is in the Sent folder.
    Other details:
    a.) The hyperlink cursor will actually fail any time you have clicked inside the message body. So clicking the link the first time counts as clicking inside the message body.
    b.) Closing and reopening the offending message will reset the message so you can click successfully once again.
    c.) If you close the message that is "edited" it will not be saved.
    This is happening on several OS and Mail combinations. (OS 10.5.8 and Mail 3.6, 10.6.4 and Mail 4.3 and 10.6.6 Mail 4.4)
    We've only noticed this on emails that emanate from our email marketing company but it could be happening with others. We were wondering if there is some formatting they use that could cause this or if it's an Apple Mail bug.
    Very hard to diagnose. Any help would be appreciated.

    Sorry, I wasn't clear. Let me clarify: not sure how it could be an Apple Mail preference thing since the problem seems to track certain messages more than anything and the problem appears in at least 3 Mail apps versions on 3 different computers across 3 different operating systems. That would be a pretty coincidental preference anomaly!
    And yes, I said it could be happening with others; the operative word is "could". I didn't mean to imply by "could" that it indeed was. Just didn't want to rule out that possibility.

  • GT-70 2OD Touchpad Problem (disabling button) after updating BIOS and EC

    Hi All,
    I was solving issues with random BSOD's (https://forum-en.msi.com/index.php?topic=176615.0), but now I got the button that Disables the Touchpad malfunctioning.
    I just updated BIOS and EC to 2014-01-17 Versions from MSI website.
    The button is not disabling the touchpad and also the LED is not working (well, it used to turn on when the touchpad was disabled), however the "touchpad enabled" picture is showing on the screen everytime the button is pushed.
    It's not a major thing, but you know how perfectionists are .... Any idea how to solve this? I'm just going to try updating the touchpad driver with latest from MSI website and let you know the result
    Thanks in advance,
    PS: Nice community. I just joined this forum and I received a lot of help already!!!!

    Quote from: darkhawk on 05-February-14, 01:00:21
    Did you perform the EC Reset procedure outlined on the website?
    Just to reiterate it:
    1. Turn off the laptop.
    2. Remove the Battery.
    3. Remove the AC adapter.
    4. Let the laptop sit there for 20 minutes.
    5. Install the Battery.
    6. Install the AC adapter.
    7. Turn on the laptop.
    This might help fix the issue.
    Yep, I followed step by step to update the EC.
    I just removed original synaptic driver for the touchpad and Installed latest from MSI website. The button doesn't work as before (I was able enable/disable at will), now its behavior is as follows (and I think it was made intelligently):
    You can't disable the touchpad if no other pointing device is present
    When another pointing device is present, the touchpad disables itself and the button LED is ON (as before). You can't enable the touchpad (before I was able to enable it) if another pointing device is present.
    For me, it's OK. BTW... had been about 22 hours without BSOD...
    Thank you guys!!!
    PS: I just realized that I re-connected my PS3 controller via USB (in the very same USB port that I use to connect it) and the laptop REINSTALLED drivers for it...

  • Mouse left-click not working after first click

    I see this issue has been up several times. I have disabled Microsoft .NET Framework Assistant and Java Quick Starter, but still have the problem. I’m using the lastest FF ver. 3.6.6 on Win XP. I think I have had this problem once in a while since FF 3.0 but now it’s almost daily.
    Does anyone know what’s causing this?
    Thanks,
    Frank
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.5; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

    I replaced my wireless mouse with a wired one, and the problem went away.

  • How to properly disable a button after click or can an event disable itself?

    Can I disable  MouseEvent.CLICK after I clicked it?
    I am relatively new to coding and it seems to me as a mistake that an event will disable itself?
    Is it ok or is it prone to some mistakes?
    mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.CLICK, onClick_Products_btn);
              function onClick_Products_btn(event:MouseEvent) :void {
                        gotoAndPlay("products");
                        mainNav_buttonsGroup_mc.Products_btn_mc.removeEventListener(MouseEvent.CLICK, onClick_Products_btn);
      Products_btn_timeLine.play();
    The idea is that I want to disable a button after it is clicked.

    The approach will work.  The event is not disabling itself.  The event is the occurence of the CLICK interaction.  The event listener is designated to detect that happening.  The event handler function for that listener is disabling the event listener.

  • Disable submit button after clicking on it

    Hi all,
    I m beginner at working with JHeadstart.
    I searched through this forum but I couldn't find any solution for my problem,
    Now, i want to know how i can disable save button (or any other button) after clicking on it.
    I dont know, but It can be done by writing .vm, do u have an idea?
    Thanks for ur kind replies:)

    Hi,
    If you only want to be able to submit once you can add the following disabled property with EL expression to your save button in the jspx page.
    disabled="#{adfFacesContext.postback}"
    The save button will only be clickable upon initial entry of the page.
    To persist this change when generating your application you can use a custom velocity template. Have a look at the JHeadstart developers guide, paragraph 4.7
    http://download.oracle.com/consulting/jhsdevguide1013.pdf
    If you want to have an insert only form you can also use an insert only View Object (go to the view object editor and select the tuning tab and the "No rows" option)
    Regards,
    Ruud Bijkerk
    JHeadstart team

  • How to cancelling email submission after user clicks "yes/no" button of message box?

    could some one tell me, how can i cancelling the submission event after one user clicks "yes/no" button of message box? The scenario is the following:
    After data input in a dynamic form clicks the user send mail button. Before the email submit, the user has to decide going back to the form and validate the input or continuing to submit email.
    In case of going back to validate input the submission event must not solve. So, how can i implemente it in java and/or form calc script?
    Thanks so much for your help in advance and i am very glad to hearing from you soon!
    Djinges

    Hello,
    The most easy way to solve your problem is to add two buttons, the first should be regular button and the second is submit by e-mail one. Set the
    'presence' property of the second to 'hidden' and add to it your email address. To the first button on 'click' event add the script like this
    form1.#subform[0].Button1::click - (JavaScript, client)
    var answer = xfa.host.messageBox("Send e-mail?","e-mail",2,1);
    if(answer==1){
    EmailSubmitButton1.execEvent('click');
    Hope this helps.

Maybe you are looking for

  • Using Y cable to dock Touch w/stereo

    I bought a Radio Shack 5-in-1 Ipod shuffle accessory kit that contains a RCA y-cable so that you can plug your ipod in its docking station top port and be able to enjoy music thru my home stereo system. Problem is this kit will allow me to plug my ol

  • Logical Path - LSMW PIR

    I am working on creating LSMW - sample conversion for PIR i struck up in the u201CSpecify filesu201D step by creating Logical Path. Step  1 : I have done it thru T.Code : FILE  in  that first by creating Logical File path. Step 2 : Assignment of Phys

  • Open .lvm file while program is running

    How do I open a .lvm file within my program? I've tried using the Open/Create/Replace File dialog with File Dialog specifying the path and I can get to the point to select the path, and it doesn't open the file. Solved! Go to Solution.

  • Return to Parent retaining Cache

    Hello, I have a requirement, when i click on link it will open new page by keeping current page as it is.( I have done it using "Target Frame =_blank"). In second page i am querying and getting one value, this is always single value. This is similar

  • What is the probability to get the same public key twice?

    when I encrypt a message using somebody's public key, what are the chances other person has generated the same key independently? Is it safe to identify a user with its public key?