Hiding htmlb button from javascript

Hi all,
I am printing my bsp page by clicking a html:button. I use javascript self.print for that.
It works fine.But i want to hide buttons while printing.
could anyone help me?
Advance thanks,
JBP.

Hi raja,
I am using Eddy's code only..
In my case, using this doesn't reflect changes...
<link rel="stylesheet" href="print_only.css"  media="print">
But if use,
<%@include file="print_only.css"%>
no button is displayed in the page itself...
My problem is <b> media="print" </b> is not working...
Rgds,
JBP.
Message was edited by: P24101990
Message was edited by: P24101990

Similar Messages

  • Hiding submit button from an Infopath form in a Sharepoint Library document

    I have a Sharepoint document library that is setup to collect submissions from a form that faces the public.  Because it faces the public it needs to have the standard/familiar submit button.  The problem is that when the form is submitted to the
    document library and the document is reviewed, it still contains the button - which will be confusing/complained about by staff.
    I attempted to use a hidden boolean field that would switch to "True" when the submit button is clicked and then use conditional formatting to hide the button before submitting through the data connection.  But apparently, there is no way
    to move the conditional formatting rules after the action rules that make the boolean swith.
    I then tried to switch to a new view that was identical to my Main view before submitting but the button is still appearing on the submitted documents in the form library.
    I'm wondering if anyone has experience with this?  I have to think I'm missing something obvious.

    Please try this -
    https://social.msdn.microsoft.com/Forums/en-US/5767ff6c-764d-479c-904e-22e40a697c6c/how-to-hide-custom-submit-button-after-form-has-been-submitted-infopath?forum=sharepointcustomizationlegacy
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Hiding action button from  UWL default view

    Hi All,
    In our UWL, we have created a subview for mass approval of leave requests.In this case, the mass approval button is appearing in default view as well.We want the buttons to be restricted only to the subviews and should not be displayed in the default view.
    We tried the below code in XML under default view but it didn't work
    <Action name="ApproveI" groupAction="yes" handler="uwlExcludeAction"   referenceBundle="levatt.ess.ApproveSelected"/>
    Pls. suggest how to hide this from default view.
    Thanks,
    Arun

    Hi Arun
    I hope you are well and many thanks for using the SAP Discussion Forums .
    Ok in relation to the scenario that you have described you mentioned:
    You created a subview for mass approval of leave requests.In this case, the mass approval button is appearing in default view as well. You want the buttons to be restricted only to the subviews and should not be displayed in the default view.
    <Action name="ApproveI" groupAction="yes" handler="uwlExcludeAction"   referenceBundle="levatt.ess.ApproveSelected"/>
    Firstly from a general perspective we need to remember two key principals in terms of the editing of XML files.
    XML files follow the concept of precedence. Therefore when you make changes to any XML files or create an entirely new XML file these files need to be re-uploaded with a new priority. To realize changes with XML files and see the changes "graphically displayed" on the portal you need to re-upload the files with a new priority of "High" or "Very High". Also after making the changes you need to clear the UWL Cache or restart the UWL Service (not portal) to see the desired changes displayed.
    The second point to highlight here is to ensure that you make and perform a backup of current XML files which are unedited. The reason for this is simply to allow changes to be reverted easily if required.
    Now back to the scenario you want to remove this mass approval option from the default view.
    There are a few approaches here, and I have outlined guidance documentation below for your cross referencing and convenience:
    Removing Actions From the UWL Display
    https://help.sap.com/saphelp_nw73/helpdata/en/4a/f09ebd4a5a6d62e10000000a42189c/content.htm
    XML Code To Remove Buttons
    UWL XML Code to remove buttons Forward,Resubmit and Assign to Me - Portal - SCN Wiki
    If you enable the support information for a given workitem associated with the button you should be able to remove the button action by removing the XML code or editing the "Actions To Exclude" section:
    Please enable the Support Information of UWL. You could find the details in the following note:
    SAP Note: 1532883 - How to Enable the Support Information for Troubleshooting issues in the Universal Worklist (UWL)
    There should be some reference to the Approval button in the file which will need to be removed.
    Kindly update me as per your findings and let me know if you find the desired resolution.
    I will be keeping an eye on the thread in the meantime awaiting your response.
    Kind Regards & All The Best
    Troy Cronin - Enterprise Portal Support Engineer

  • Hiding Change Button from CRM ISA Configuration!

    Hi,
          I have an requirement to hide the change button in ISA front end (web ISA B2B). From SAP i came to know that this can be achived from ISA configuration level. can someone assist me in this configuration part. how to approch.
    Regards,
    Anil.

    Hi Anil,
    What 'Change' do you want to hide on the ISA B2B ? SAP would've suggested that it is a Extended Configuration Management (XCM) Administration setting. It could be accessed from a URL that would be something like http://yourcompany.com/b2b/admin/xcm/init.do.
    Hope this helps.
    Ashok.

  • Click af:commandButton from javascript

    Hey
    I'm having the same issue as you. I want my session to be destroyed when a users closes the window.
    As onUnload triggers every time you navigate away from the page I can't use it. Instead I'm using the following Js code:
    <script type="text/javascript">
    window.onbeforeunload=function(){
    if (window.event.clientY &lt; 0 &amp;&amp; (window.event.clientX &gt; (document.documentElement.clientWidth - 5) || window.event.clientX &lt; 15) ) {                       
    document.getElementById('hiddenButton').click();
    </script>
    my af:commandButton has the following structure :
    <af:commandButton text="" id="hiddenButton"
    onclick="if (confirm('#{res['sag.generales.cerrarSesion']}')) {window.document.all['logoutFrame'].src='../servlet/LogoutServlet';window.setTimeout('closeWindow()',100);}"/>
    <af:regionDef var="attrs">
    But is sadly not working. When I close the page nothing executes.
    On the other hand if I use a regular button instead of an commandButton I'm able to click it via javascript
    <input type="button" name="theSubmitButton" id="hiddenButton" value="Button" onclick="alert('The button was clicked.');"/>
    i mean, in this case when i close the window i get the message "The button was clicked". But if I use the same code I have on the af:commandButton onclick for closing my session nothing happens.
    I'm super new to adf and java so maybe I'm missing something obvious.
    Thanks a lot for your hepl. I mean it :)
    Edited by: loskiorama on Jun 20, 2011 8:54 AM

    Hey!
    Thanks for your help guys!
    Frank:
    I tried as you mentioned
    window.onbeforeunload=function(){
    if (window.event.clientY &lt; 0 &amp;&amp; (window.event.clientX &gt; (document.documentElement.clientWidth - 5) || window.event.clientX &lt; 15) ) {                       
    var button = AdfPage.PAGE.findComponentById('hiddenButton');
    AdfActionEvent.queue(button,true);
    <af:commandButton text="" id="hiddenButton"
    onclick="if (confirm('#{res['sag.generales.cerrarSesion']}')) {window.document.all['logoutFrame'].src='../servlet/LogoutServlet';window.setTimeout('closeWindow()',100);}"/>
    but when i close the window. the commandButton onckick in not executing. Maybe is because as I'm closing the window, the event doesn't get queued in time. i don't know
    Vinod:
    I'm using a onlcik on my af:CommandButton button
    <af:commandButton text="" id="hiddenButton"
    onclick="if (confirm('#{res['sag.generales.cerrarSesion']}')) {window.document.all['logoutFrame'].src='../servlet/LogoutServlet';window.setTimeout('closeWindow()',100);}"/>
    When I click the button it works fine. but what I want to do is click this same button from javascript
    Thanks so mucho for your help guys. Hope you can keep helping me find a solution

  • Is it possible to access an object inside a Captivate movie from Javascript?

    For example, my JavaScript performs some processing, based on which a particular button inside the movie needs to be hidden. Can I access a particular button from JavaScript to be able to do this? If not, then is it possible to be notified inside the Captivate movie, when a variable has been set by JavaScript?  I notice that the JavaScript interface in Captivate 8 provides an event (CPAPI_VARIABLEVALUECHANGED) which fires when the value of a variable inside the Captivate movie changes. If there was a similar event which would fire inside the Captivate movie, when a variable changes then I could have set a variable using JavaScript and hidden a particular button using an advanced action, when the event for that variable changing fires inside the Captivate movie.
    Articulate Storyline has an event which gets triggered when the value of a variable changes (either because of JavaScript executing or otherwise). If something similar was possible in Captivate, it would open up many possibilities.
    I am evaluating Captivate 8.
    Thanks in advance for any help.

    hi
    Yes. its possible but its not recom
    you can set in production system to allow changes to obj rsa1->transport connection->click 'object changeability', and look for object type , and set to changeable.
    pls refer these below posts
    transport a query backwards, from production to development
    Re: Transporting Process Chains from Production DOWN to QA and Dev
    assign points if useful.....
    Shreya

  • How to pass parameters to javascript from HTMLB Button Click

    Hi Experts,
    I am using a HTMLB Button, I need to pass parameters to JavaScript onClientClick.
    Whether we can pass parameters to javascript function from HTMLB button.
    I tried to pass parameters to javascript in onClientClick, but on load of the page it is saying that its a Syntax error.
    This is the code that i have created Script
    Note: The parameters and the Button are dynamically created. Also there are n Numbers of buttons created.
    Please help me in this regard to solve the issue. If there are any error in syntax please let me know.
    Thanks & Regards,
    Palani

    Rather than using SQL loader, you could just use similar syntax in an external table definition. It both cases, the file may need to be at the OS level.
    http://www.psoug.org/reference/externaltab.html
    If your file is stored in an Apex table's clob column, you can just loop through the individual lines (but then need to parse the lines yourself). See clob2line here http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:285215954607#388438800346703098
    Or you can dump the clob to the OS first (using utl_file or dbms_lob), and then read it back using external table, taking advantage of your control file definition. sqlloader has the disadvantage of needing user/pass usually.
    http://www.psoug.org/reference/dbms_lob.html
    http://www.psoug.org/reference/utl_file.html

  • Accessing HTMLB from javascript

    Hi expert,
    Can someone explain how to access the attributes,methods avialable in javascript to access htmlb objects in a page,
    Like for e.g.,
    htmlbSL(this,2,'SUBMITVALUES:HandleSubmit')
    Is there any document available?
    Thank you
    AP

    Hi AP,
    I believe there is no documentation avaliable about this.
    Maybe because this accessing method is not right to do
    but I can explaint about the function htmlbSL
    function htmlbEL(this,2,'SUBMITVALUES:HandleSubmit');
    this                      = HTML element.
    2                         = event type index.
    SUBMITVALUES:HandleSubmit = objectID:eventName
    if you want to know list of event type index.
    here the list:
    <b>EVENT TYPE                  INDEX</b>
    'htmlb:breadCrumb:click'      1
    <b>'htmlb:button:click'          2</b>
    'htmlb:checkbox:click'        3
    'htmlb:image:click'           4
    'htmlb:link:click'            5
    'htmlb:radioButton:click'     6
    'htmlb:tabStrip:click'        7
    'htmlb:tree:click'            8
    hope this can help you.
    respeck,
    -adyt-

  • How to deselect the Radio button from htmlb.table.TableView

    Hi Experts,
    Could you please help me, how to seselect the Radio button from htmlb.table.TableView?
    <hbj:tableView
                                       id="tbvCustomer"
                                       model="mcBean.csModel"
                                       design="ALTERNATING"
                                       headerVisible="TRUE"
                                       footerVisible="TRUE"
                                       navigationMode="BYPAGE"
                                       selectionMode="SINGLESELECT"                               
                                       fillUpEmptyRows="FALSE"
                                       headerText="Searchresults"
                                       visibleRowCount="10"
                                       onNavigate="CustomerSearchNavigate"
                                       visibleFirstRow="<%=mcBean.getCsVisibleFirstRow() %>">
    Problem: After searching and selecting the Customer in the table, then again we are searching for another customer. After that the searched customer is displaying in the Table. By default the table Radio button is selected. Because for first Customer we have selected the Radio button. How we can deselect the FRadio button while searching for another Customer.
    Thanks In Advance.
    Regards,
    Vijay.

    I think it is <2095>.
    In SmartForms, go to your text window. 
    Use the icon on the top left of the text window to switch to the old editor.
    INSERT -> CHARACTERS -> SAP ICONS. 
    Do a FIND on "radio".  It's called ICON_WD_RADIO_BUTTON_EMPTY.

  • Trigger Javascript function onClick of HTMLB button

    Hello Everyone,
    Could anyone give me some sample code to trigger a Javascript function onClick of HTMLB button. Basically I have some javascript code and I want it be executed on click of a HTMLB button. I would greatly appreciate your help. Thanks.
    Regards,
    GY

    Hi,
    as Ravi wrote, you trigger javascript functions using the attribute onClientClick. You define first the javascript code in your page and then you can call the code like this:
          <htmlb:button text    = "Some text"
                        encode  = "false"
                        onClientClick = "javascript:Your.Function()" />
    check that you define the code first and then you write the code for your button; otherwise, application will not know that the JS code exists.

  • Hiding the Optimizer button from the DS planning board

    Hi
    How to hide the optimizer button from the DS planning board ..
    Thanks

    Hi Chak
    I think the problem may be with a livecache inconsistency. The Planning Board should be reading it's information from the livecache, whereby the Product View may be getting it's situation from the database. Try running the livecache consistency checks if it occurs again.
    Regards

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

  • How to execute FM from Javascript function?

    Hi All,
    I have a requirement to execute ABAP FM from Javascript function in BSP Application.
    How do I implement this?
    Is there any document/link in SDN?
    Thanks
    Thruna Shanmuga

    Hi,
    When button is clicked capture the event in OnInPutProcessing and call the function module.
    In layout mention the java code
    Here is a sample code:
    Layout Code:
    < script >
    document.on keydown=function( )
    if (event.key Code==13)
    htmlb SL(this,2,'get') Mention the button ID
    < /script >
      <htmlb:button id      = "get"
                             text    = "Execute"
                            width   = "35%"
                            on Click = "On InputProcessing()" />
    OnInPutProcessing Code:
    data:
      w_event type ref to cl_htmlb_event,
    call method cl_htmlb_manager=>get_event
      exporting
        request = runtime->server->request
      receiving
        event   = w_event.
    case w_event->id.(To capture the event)
    when 'get'.
    <<Call the function module>>
    endcase.
    Hope this solves the issue, Let me know if any queries.
    Regards,
    Rajani

  • HTMLB +  htmlb:button

    Hello Friends,
    I have a problem in using HTMLB, button in view of BSP page. Actually the problem is that I want to call the main contrller when user click on the button. But as in view there is not Event Handler, so while "onClick="event_1"/>, how I can handle this event!
    here is a bit of code segment!
    <htmlb:button  width="10" onClick="event_1"/>
    Does it work ?? like this if I call controller direct ??
    <htmlb:button  width="10" onClick="main.do"/>
    With Regards,
    Haider Syed.

    So, after making a small mistake in my last post (corrected now), I will try to bring some light into this situation:
    First, summarize all the options you have:
    Each form has a "target" (<b><form action="target_controller.do"></b>) which the browser will submit the form data to.
    Note that this is different from the actual target-attribute (<b><form target="_blank"></b>), which is used to specify the location where the server-response will be displayed - you can let it be shown in a new window here.
    Then, for form elements, you have the option to set client-side javascripts, using the <b>onClientClick</b> attribute. It's best if you just call a javascript function here, and define this function somewhere else in your code (javascript-file-include for example).
    <htmlb:button ...
       onClientClick="yourFunction();" />
    You can access your HTML elements (also form elements) using javascript, so changing the target or action parameter from within your function is possible!
    To finish this post, there is the server-side event, specified by the <b>onClick</b> attribute, which is usually checked for in DO_HANDLE_EVENT (in case of MVC) or in OnInputProcessing (for non-MVC BSP pages, like Craig mentioned). But remember, this is server-side event!
    So, with this info, you should be able to specify in more detail what you call "for each button a new event" - whether you mean server-side or client-side event ... maybe thinking about this alone will almost solve your problem.
    Regards,
    Max

  • Disabling Htmlb button

    Hi,
        I have to restrict the users from doubleclicking (Save)htmlb button more than one time in my applcation. So how can i disable the Htmlb button after first action.....?? thru javascript or in dynpage..?
    Can anyone help me out
    Regards
    Ganesan S

    Hi ganesan,
      U can have some integer set by default for the button(say i=0). on Client Click of the button, this integer can be increased and the button can be disabled in Javascript.
    Try something like this onClientClick of the button in the script,
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var button1 = eval(func("button1"));
    if(i==0){
    i++;
    button1.setDisabled(false);
    if(i>0){
      button1.setDisabled(true);
    Don't forget to set jsObjectNeeded=true for button.
    Hope this helps.
    Regards,
    Harini S
    Reward points for helpful answers.

Maybe you are looking for

  • Uniting object tables

    Hi. Could you please help me solve a problem with the following query: SELECT CAST (MULTISET (SELECT SPATIAL_TYPE (PLACE, BOUNDINGBOX) FROM (SELECT GEMETTYPE(TH_THES_NO, TH_LANG_NO, TH_DESC_NO) PLACE, BOUNDINGBOX_TYPE(NULL, NULL, NULL, NULL) BOUNDING

  • Is it possible to retrieve text messages if you accidentally delete the contact?

    I accidentally deleted a contact in my text messages and I want to retrieve the old associated texts.  Is there a way to retrieve them?

  • SQL Server 2012 Edition required for my case??

    Hi, I am setting up a SharePoint 2013 BI environment with minimal servers. Below is the configuration: 1) WFE1 - Front End Server Role 2) APP1 - Application Server Role with SSRS 2012, SSAS in SharePoint mode.    SQL Server 2012 BI edition is used he

  • Change AUCTeX PDF Viewer

    For some reason, my default pdf viewer in auctex is evince even though I don't have it installed. I tried using the menu LaTeX -> Customize AUCTeX -> Expand menu but it says that it's undefined. I know I have to edit the "TeX-output-view-style" but I

  • XA support for Oracle XA

    I love the idea of XE and want my whole development team to start using it on their local environments. However, one of the vendor tools we use require Oracle to have XA enabled. I've read 2 posts that were similar to this question but neither gave a