How to disable button in dialog page?

Hi friends,
Apps R12.
In PFR, create a warning dialog page with yes/no buttons in this way:
OADialogPage dialogPage = new OADialogPage(OAException.WARNING,mainMessage, null, "", "");
String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
dialogPage.setOkButtonItemName("CreateYesButton");
dialogPage.setOkButtonToPost(true);
dialogPage.setNoButtonToPost(true);
dialogPage.setPostToCallingPage(true);
dialogPage.setOkButtonLabel(yes);
dialogPage.setNoButtonLabel(no);
pageContext.redirectToDialogPage(dialogPage);
In PR , I do:
if (pageContext.getParameter("CreateYesButton") != null){
//process....
I need to disable Yes button in PR just after having clicked on it.
It's to avoid user can make more than one click on it.. to avoid the process that follows it executes for more than 1st time.
Any help would be appreciated.
Thanks!

I think this is handled internally in framewok.
Just debug and check if the processFormRequest() is getting called twice or not.
--Prasanna                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to disable the reminding dialog when close the webi report viewer

    Dear all
    How to disable the reminding dialog when close the webi report viewer
    Background
    When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
    But customer need to disable this dialog, and can clost the report viewer directly.
    So is there any ways to modify this?
    I think it shoule modify some .js file under tomcat, but can not find the solution.
    Thanks a lot, any information woulde be appreciated.
    David Zhang

    I've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
    It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
    I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
    MANY thanks mende1 for the answer on how to fix it.

  • How to disable buttons in HTML?

    How to disable buttons in HTML?
    For example.. In my application when one button is clicked then it should disable some buttons and should be able to perform any other actions...

    Correct me if i am wrong.. i think we should not use '[' but '('
    document.getElementById('buttonname').disabled = true;

  • How to disable jaxrpc webservice status page?

    How to disable jaxrpc webservice status page
    I set the following parameter in web.xml,but it's not work.
    <init-param>
         <param-name>com.sun.xml.rpc.server.http.publishStatusPage</param-name>
         <param-value>false</param-value>
    </init-param>
    some body help me!
    thanks!

    i think.
    this is your requirement: for all your customers dont need to show the navigation toolbar(or) address bar (i.e) dont what show the address
    which is current running:
    http://127.0.0.1:7101/xxxJApp-GeneralLedgerUI-context-root/faces/login
    these thing have to be handled inside the adf code.
    if am right? means:
    adf reendering output just utilizing the browser to display. we cant control that broswer objects.
    As far as i know. answer is no. if am understood correclty.
    some experts better comment on it.

  • How to remove NO Button on dialog page

    Hello friends,
    i want to remove no button on my dalog page how to do? my code is below , below this code still i can see on dialog page no button.. can any one help me out..
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING,descMesg, null,"" ,"" );
    dialogPage.setOkButtonLabel("ok");
    dialogPage.setOkButtonItemName("YesButton");
    dialogPage.setOkButtonToPost(true);
    dialogPage.setPostToCallingPage(true);
    System.out.println("Entering To Delete");
    pageContext.redirectToDialogPage(dialogPage);
    Thanks
    krish.

    You can specify your own button bar with the required buttons.
    Extract from Developer's guide.
    The setFooterNestedRegionCode and setFooterNestedRegionApplicationID methods in the OADialogPage class have been deprecated.
    If you use the standard OK/NO buttons provided on the dialog page, you do not need to make any changes.
    However, if you are using the OADialogPage.setFooterNestedRegionCode and OADialogPage.setFooterNestedRegionApplicationID methods to render customized buttons under the footer region, you must update your code to use the new method OADialogPage.setPageButtonBarRegionRefName instead. This new method lets you set a reference to a page button bar region, built declaratively with OA Extension. You can add any number of custom buttons to the page button bar region. OA Framework renders the page button bar region under the footer. Adding your custom content to a page button bar region allows the page buttons to be rendered and positioned in the proper places specified by the latest UI standards. To render the Return To navigation link under the footer, use the existing setReturnToLinkLabel and setReturnToLinkURL methods in OADialogPage.
    To render a nested region, created with OA Extension, under a dialog page header, use the new OADialogPage.setHeaderNestedRegionRefName method.

  • How to: disable buttons in standard forms

    Hi all,
    does anybody know how to disable session date button from standard forms?
    I cannot find in forms (through Form Builder) the right data block / canvas where this button is.
    Thanks all.
    Jacopo

    I'm not aware of any "session date button". A button on a form can be disabled using the set_item_property.
    Use the layout editor and double-click the button. It will tell you what button it is. The button will also be highlighted in the Object Navigator window.
    Message was edited by:
    Mark Roberts

  • How to disable Buttons based on condition.

    Hi
    Need your help to disable button based on condition.
    Please refer the application:
    http://apex.oracle.com/pls/otn/f?p=34797:5:110582943383419::NO:::
    login credentials:
    workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In the above application, i have 2 buttons in page 5, (Report1 and Report2)
    Where i have to disable button based on the following conditon:
    i) USER whoever has Admin value 'Y' in my table can access the button.
    for this i've written a Button Condition : Type (EXISTS)
    select 1 from apex_extra_values where rtrim(lower(empname)) like decode((select Admin from apex_extra_values
    where rtrim(lower(empname))=rtrim(lower(V('APP_USER')))),'Y',rtrim(lower(V('APP_USER'))))
    note: i have empname same as my APEx user name. with Admin access 'Y'.
    By using this code i can able to hide the button for users who has no Admin access.
    But my requirement is : i have to show the button even if the user is not Admin, but to grey out (disable the button - no action)
    I tried using javascript function:
    function disableButton(pThis)
    pThis.disabled=true;
    But either of this (exists condtion or JAvascript function) works in my case and not both.
    Any pointer on this would be highlt appreciated.
    Thanks
    Vijay

    Couple of things:
    1. I would never use v('APP_ITEM') but :APP_ITEM - it is faster and there is no need to use this function within an application
    2. The way you are doing this check is not the best approach. You should create an authorization schema and run this once per session. Whatever this authorization is returning as a result you can check using the following Function returning boolean:
    IF apex_util.public_check_authorization ('MY_AUTH') THEN RETURN TRUE; ELSE RETURN FALSE; END IF;
    See this example on authorization issues:
    http://apex.oracle.com/pls/otn/f?p=31517:148
    3. As far as disabling a button is concerned I think I explained the options. I also have an example on that here:
    http://apex.oracle.com/pls/otn/f?p=31517:143
    whereby it is not disabling but hiding a button.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • CS3, CS4, CS5 how to disable redraw of a page

    Hi ther,
    becose of performance I need to disable redraw of InDesign page till it is created - any suggestion how to do this?
    regards

    Hi,
    yes, I know the scriptPrefs way - the problem is this is working only if it is in a script file. Application build with .NET or VB6 can use this way but it doesn't work. So the only solution for me is to make small SDK plug-in which is accesable from .NET or VB6 application and realy freeze the page redrawing till it is created - InDesign is getting slower and slower with the growing number of pageitems created in a document. The visible property of pageitem since CS5 help a little but not that much...
    Any other suggestion or tricks fpr InDesign performance with a huge amount of page items in es doc?
    regrads

  • 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.

  • How to Disable Buttons Dependng upon a WLS group

    Hi guys,
    I have been working on a portal framework application in which i want to enable/disable certain command buttons on a page depending upon the Group in WLS to which the user belong too.
    The scenario is like this:-
    i am having a user named Mark in WLS which belong to three groups in WLS - author, hr and rnd.
    and there is a Command Button called Upload. So this Upload button should be enabled only if at least one of the group user belong to is "author".
    If there is another user which belong to groups hr, rnd and approve, in that case the button should be disabled.
    Any help Please
    Thanks

    In such a case you could simply create a method in a managed bean to execute the logic.
    Something like this should work:
    public boolean getUserIsOnlyAuthor(){
            ADFContext context = ADFContext.getCurrent();
            boolean isAuthor = context.getSecurityContext().isUserInRole("author");
            boolean isHr = context.getSecurityContext().isUserInRole("hr");
            boolean isRnD = context.getSecurityContext().isUserInRole("rnd");
           if(isAuthor && !isHr && !isRnd)
                return true;
           else
                return false;
    }And on your page:
    <af commandButton rendered="#{yourBean.userIsOnlyAuthor}" text="Upload"/>After rereading your question I am a little bit confused :)
    Do you mean that the button only should be enabled when the user belongs to author and only author so if a user belongs to auther + hr, the button should be disabled?
    In the code example above you will have following scenario:
    User belongs to only author: button will be enabled
    User belongs to author + hr: button will be disabled
    User beloings to author + rnd: button will be disabled
    Is this correct or should the button always be displayed when the user belongs to author, no matter what other groups he has?
    If this is the case, it's even more simple. You don't need a managed bean and you can do just this:
    <af:commandButton rendered="#{securityContext.userInRole['author']}" text="Upload"/>

  • How to disable buttons in ADF form so it can be reused

    I would like to reuse the same Human Task ADF form for multiple User Activities in the same BPM 11g process definition.  The only difference between the User Activities in the process are the outcomes (buttons) allowed.  For example, in some User Activities, the outcomes allowed are APPROVE and REJECT.  In others, it might be APPROVE, REJECT, and REPROCESS.  Is it possible to hide, or disable, buttons in a Human Task ADF form based on some settings done in the User Activity, or something passed to the Human Task ADF form?
    I started digging, and I see in the jspx file for the form, there is an attribute named "visible" that is set as follows on the button:
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                           text="#{wf:getResourceValue('APPROVE', 'bindings.customActions')}"
                           disabled="#{!bindings.APPROVE.enabled}"
                           action="#{invokeActionBean.invokeOperation}"
                           partialSubmit="false"
                           visible="#{wf:isCustomActionAvailable('APPROVE', 'bindings.customActions')}"
                           id="ctb2">
        <f:attribute name="DC_OPERATION_BINDING" value="bindings.APPROVE"/>
    </af:commandToolbarButton>
    So if I can figure out a way to pass flags to the form, and then use those in the setting of the "visible" flag, would that do it?  Is there a better method?
    Thanks,
    Joe A.

    Set the binding to the button in the managed bean based on the input form parameter. For example if parameter value is paramValue1
    <task-flow-definition id="sourceTaskflow">
      <input-parameter-definition>
          <name>inputParameter1</name>
          <value>#{pageFlowScope.paramValue1}</value>
          <class>java.lang.String</class>
       </input-parameter-definition>
    </task-flow-definition>
    Set binding to not enabled.
    #{!bindings.CreateInsert.enabled}
    Some relevant references
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    Using Parameters in Task Flows

  • Account Mgmt - How to disable buttons ?

    Hi,
    While dealing with an account, how can we disable a particular button for a particular set of users.
    e.g. if i log in as a Marketing Professional, i should see the EDIT button while on an account page, whereas if i login as a Sales Professional, i should not be able to EDIT the account.
    Is this kind of role based access possible at the WEB UI ?
    Let me know.
    Thanks,
    Prish

    Hi Prish,
      By using the below statment you can read the role which you logged in.
    lv_brole = cl_crm_ui_profile=>if_crm_ui_profile~get_user_defined_profile( ).
    Once you get the role you can disable your EDIT button by setting button-enabled = 'FALSE'.
    Regards,
    Lakshmi.Y

  • How to disable button immediately after pressing

    Hi
    In my save button there is a code for insertion of data in database.
    In my application when i press save button first time the IE progress bar shows progress but if suppose the user presses the button again
    then the data wil get saved twice.
    Now if i put a code in button action method to disable it will function only when it will be called in between user can press the button.
    How to arrest users for clicking???
    If you have any idea please help me out.

    How about setting the button to:
    yourButton.setVisible(false);
    So when your button action is called, this is the first action that is called before your code insertion lines so the button will disappear when clicked e.g.
    public String yourButton_action {
    yourButton.setVisible(false);
    ....code insert data......
    return null;
    Or set the "return null" to return a new page.
    Of course, if you wanted it to be visible again after the insertion then you would set
    yourButton.setVisible(true);
    Alternatively, you could setup a counter that would check the number of times the button was pressed and make the button visible (or invisible!) when conditions are met.

  • How to disable buttons in Search help screen ?

    Hi All,
    How do we disable Print button in customer search help ?
    We want that nobody should be able to take a printout of Customers from Search help result. Hence we want to disable the print button which comes in Search help.
    Any idea how do we go about it ?
    Regards,
    Ashish

    Hi there,
    you should be able to do that with the search help exit. Try replacing the PF-STATUS for instance. I am not sure if this works though!
    For instance:
    IF call_control-step = 'PRESEL'.
    SET PF_STATUS 'ZZ' OF PROGRAM 'ZZZ'
    ENDIF.
    Or you might call the existing PF-STATUS and use EXCLUDING.
    Roy

  • How to disable adds on mozilla pages, that interrupt my browsing sessions

    I use Mozilla to go onto facebook. I recently started having ads show up on the page, which interrupt me while updating my status or commenting on my friends' statuses. This is annoying. How do I disable the ad function in Mozilla?

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

Maybe you are looking for

  • How do I get my apple ids correct?

    I have 2 apple ids but want to consolidate to my .me only as the original email id is no longer valid. My phone is on the .me id and everything else on the old id. As a result I can't download anything to my phone without syncing to my computer. I wa

  • Can I use a USB thumbdrive to back up my Music on iTunes?

    Can it be done? If so, would it be hard?

  • Multi-camera audio follows video

    What does this feature in the timeline do?

  • Blue screen and hot

    Last year, shortly after getting my Macbook pro, it started running hot when I would play Sims or on a FB game. Took it to the genius bar and they said nothing was wrong. It kept doing it and eventually I got a lap cooler for it and it helped, but st

  • Uploading to Java database

    I don't really even know what I am doing but perhaps someone can point me in the right direction. I have a database, basically a library type system with movies, showing what I have in stock, what I have on loan, and what I have loaned out. I want to