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.

Similar Messages

  • 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 deactivate button after click??

    hello experts,
    how to deactivate button after click???
    there are 2 buttons
    Download | Add
    now if i click on download the download button should get deactive.....n  Add button position should not change..
    thanks in advance.

    Hi,
    1. Declare an internal table of type sy-ucomm. i.e.
    DATA : it_fcode TYPE TABLE OF sy-ucomm.
    2. Append Function Codes of the options in the Menu that you want to deactivate to the above declared internal table. For e.g. If DWL & ADD are the Function Codes of options that need to be deactivated then,
    APPEND 'DWL' TO it_fcode.
    APPEND 'ADD' TO it_fcode.
    3. Set PF_-Status as shown below.
    SET PF-STATUS 'status_name' EXCLUDING it_fcode.
    4. Now, the options in the menu bar with Function Codes 'DWL' & 'ADD' will be deactivated.
    aRs
    pOINTS ARE ALWAYS WELCOME

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

  • 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

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

  • 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

  • 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 button once click

    Hi,
      I have made a dialog program, in which, on the screen I have to push button, PB1 and PB2, my requirement is Once the user click on PB1 then that button I want to disable (inactive mode) or invisible till user click on PB2,  I have written the code as below but it is not working,
       module USER_COMMAND_0100 input.
        OK_CODE  = SY-UCOMM.
      CASE OK_CODE.
      WHEN 'PB2'.
        CLEAR : VBELN,WA_VBAP,IT_VBAP[],WA_VBAP_RFC,IT_VBAP_RFC,MESSAGE.
      WHEN 'PB1'.
       PERFORM GET_SO_LINE.
      ENDCASE.
    endmodule.                 " USER_COMMAND_0100  INPUT
    now when the OK_CODE is PB1  in that I have below code
       LOOP AT SCREEN.
        IF SCREEN-NAME       = 'PB1'.
           SCREEN-ACTIVE     = '0'.
           SCREEN-INVISIBLE  = '1'.
           MODIFY SCREEN.
        ENDIF.
         IF SCREEN-NAME       = 'VBELN'.
           SCREEN-ACTIVE     = '0'.
           SCREEN-INPUT      = '0'.
    *       SCREEN-INVISIBLE  = '1'.
           MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    but with this code it is not working.
    regards,
    zafar

    Hi,
    Declare a global variable that will serve as your flag.
    * data declaration..
    data: g_flag type c.
    * PAI
    module USER_COMMAND_0100 input.
        OK_CODE  = SY-UCOMM.
      CASE OK_CODE.
      WHEN 'PB1'.
              g_flag = 'X'. " set flag
      WHEN 'PB2'.
              g_flag = space. " reset flag
      ENDCASE.
    endmodule.
    * PBO
    LOOP AT SCREEN.
        IF SCREEN-NAME       = 'PB1'.
               If g_flag = 'X'. " PB1 was clicked
                 SCREEN-INPUT  = '0'
               else.
                 SCREEN-INPUT  = '1'
               endif..
           MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    -Jake

  • How to disable button immediately after click?

    Hello,
    I'm using JDeveloper 11.1.1.4.0
    On my screen is an 'Add' button that calls specific method written in bean (addAction). Following are actions in addAction():
    1. Disable Add button
    2. Execute 'CreateInsert'
    3. adfContext.addPartialTarget(corresponding adf table)
    This works fine when user clicks on 'Add' and waits for couple of seconds, till the 'Add' button gets disabled
    However, if the user keeps on clicking 'Add' button, it sends multiple requests to server and adds those many records in 'adf table'.
    Is there any way to stop user input till the response is received for the previous request?
    I tried setting up 'blocking' property of the button. But it did not work.
    I also tried using 'unsecure' property of the button for disabled property and call setProperty('disabled',true) in javascript. In this case server request is not sent.
    Appreciate your help in this regard.
    Amar

    hi user,
    i cant undertud ur problem.. but i understud that something disabing the button.
    <af:commandButton text="Entry completed" id="cb23"
    binding="#{pageFlowScope.managedbean_GeneralLedger.cb23}"
    action="#{pageFlowScope.managedbean_GeneralLedger.cb23_action2}"
    disabled+="#{bindings.GlLvlAccounts1.estimatedRowCount eq 0 ? 'true' : 'false'}" // here whatever ur condition.
    partialSubmit="true"
    />
    af:command button disabled

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

  • 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

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

Maybe you are looking for

  • How can I view form details in a popup window?

    Recently, something called Babylon assist took control of Firefox and I was forced to reset Firefox to get rid of this. As a consequence, I lost the ability to right click on a page and select from a list that allowed me to view form details in a pop

  • Blue ray dvd

    I am having problems with my blue ray dvd player.  All the connections are done properly but when I insert disc and turn the dvd on I do not get any pictures or sound.  Can anyone explain what I am doing wrong?

  • How do i connect to direct tv

    i'm trying to hook up my apple tv to my dircet tv box has anybody done this before

  • Use of Planning Strategy 70

    While we understand how to use this strategy, we are interested to know which other SAP customers are currently using it. We have an implementation coming up and believe that this is the proper solution but would like to open a dialog with others tha

  • MDS 9000 cli structure query

    Hi all, I have been reading the following documentation: Cisco MDS 9000 Family CLI Configuration Guide, Release 4.x My question is more to do with CLI commands, so if I have posted to the wrong forum let me know where I should have posted my question