Two submit buttons or more going to diffrent e-mails

Hello!
This question was from ndjustin20 and was answered on October 7, 2009 by pgueret below, however I an not javascript (i am assuming it was used) savvy and cannot figure out how it is done. Does anyone have the text used?
I am trying to create (many) submit buttons to different e-mails.
Hello Everyone!
I'm trying to have two separate buttons inside my  form that simply email my pdf to two different addresses.  For some  reason though the first button I create and enter an email address for  takes presedence over all the rest of the buttons I create.  So I create  button1 with email address [email protected] then i create another button2  and say that has an email address of [email protected] well what is happening  is no matter what i put in button2's properties or inside the XML it  still puts [email protected] in the to line of the email.  I am using the button object and changing  it to a submit with the PDF option selected from the drop down.  I have  been able to do this in the past but since i have upgraded to Lifecycle  8.2 I can no longer get it to work right.  Any help is appreciated.  I  don't know how to code in lifecyle but I do understand the principles of  programming so if it is something that i need to do "under the hood" so  to speak then please give me that option also.
I am also receiving this  warning:
"This  document has accessed more than one site and may be trying to share  data among different locations.  This could be a privacy concern.  Are  you sure you want to continue?"
I have attached the form for further review.
J

Hello pguerett,
I read the advice you gave to ndjustin20 and I was wondering if you could help me out with the same issue with having two submit buttons going to two different email addresses. I try following along with what you were saying, but was getting confused on how you were going about to fix the warning i am receiving about “"This document has accessed more than one site and may be trying to share data among different locations.  This could be a privacy concern.  Are you sure you want to continue?”.
I’m new to adobe’s discussion board and new to LiveCycle Designer and I’m not too diverse in java scripting. I used the “Email submit button” option in the library palette to add the buttons to my form for whoever is filling out the form to e-mail them back to one of the two email addresses.
I am attaching the form for your review. Anything you can help me with on this will be greatly appreciated. Thanks!
Rene

Similar Messages

  • Can we have two submit buttons in one form

    please someone help me. my problem is i want two submit button in one form.one to insert data and other to search data .how can i do this.

    hi!
    it is possible but impragmatic to supply a single form with 2 submit buttons.
    albeit, rather that use submit button you may just do the following (alternatively):
    a. put a default action url to your form's action attribute;
    b. replace all your submit button with just button (form element) and put a unique id on each;
    c. then put a function name (javascript) on its onClick attribute;
    d. in your javascript function, you may now reference your button through their id's and using an if-then statement, assign the proper url that will serve as the new action for your form;
    e. on the last line of your function, execute the line formname.submit()doods72
    http://www.ingenium.com.ph

  • Two submit button?

    Hei I got a qn. Currently I am doing a jsp web programming. I have a form which allows user to provide input on the group number and also the group description. I know how to do if I use 1 submit button. But currently I have to have two submit button. one of them called save and continue. 2ND BUTTON is for save and add another.
    summary:
    -1 form under add.jsp
    -2 textbox
    -Group number
    -Group description
    -2 submit button
    - save and continue
    - save and add another
    -2 destination
    the form will forward the user to validate.jsp(to validate user inputs) validate.jsp will forward either to addGroup.jsp on success and add.jsp on failure of validation
    after forward to addGroup.jsp in the page the values will be added into the database.and user being forwarded to viewGroup.jsp.
    destination after clicking save and continue should be viewGroup.jsp
    destination after clicking save and add another should be add.jsp after successful additing value in database

    i've tried that b4 thou. what happen to my program is that the value is swapped by the button. i click save and complete it execute what save and add should do. when i click save and add it returns error as null value sent..
    the request.getParameter(buttonName) placed in my validate.jsp right.. Cos my program currently in school thus i can't verify with u today. Can only get to u tomorrow. Hope you could still visit here cos i might still need ur help.
    I am actually weak at this and confused...
    i know that sent value via url then request from the other page. what i dont understand is the checking part. If u do have the syntax can u help me...

  • How to tell the difference bewteen two submit buttons

    Hi,
    I want to build a jsp page, which executes a method from a bean, dependingly on which submit-button has been pushed. To explain it, i've included some code.
    -------------BasicConfig.jsp-------------------------
    <form method="post" action="Default.jsp"><br>
    <input TYPE="SUBMIT" NAME="BasicConfigurationDefault" VALUE="Default">
    </form>
    -------------ServerOptions.jsp----------------------
    <form method="post" action="Default.jsp"><br>
    <input TYPE="SUBMIT" NAME="ServerOptionsDefault" VALUE="Default">
    </form>
    These two submit to the same default.jsp page but the buttons have different names. Now i want the default.jsp page to recognize, from where the request came, by looking at the names, and forward them to the appropriate page. How can i do this? I tried using request.getparameters, but i can't figure it out in which parameter the name are from the submit buttons.
    thanks in advance,
    Hugo Hendriks

    -------------BasicConfig.jsp-------------------------
    <form method="post" action="Default.jsp"><br>
    <input TYPE="SUBMIT"
    SUBMIT" NAME="BasicConfigurationDefault"
    VALUE="Default">
    </form>
    -------------ServerOptions.jsp----------------------
    <form method="post" action="Default.jsp"><br>
    <input TYPE="SUBMIT"
    SUBMIT" NAME="ServerOptionsDefault" VALUE="Default">
    </form>In the first case you will receive a parameter called "BasicConfigurationDefault" with the value "Default" and in the second case, a parameter called "ServerOptionsDefault".
    I didn't try this with a POST method but with a GET method... I hope they do the same.
    If it's not working, just call a JavaScript function when you click on the buttons and set a value to an hidden field.

  • One single page, two SUBMIT buttons.

    At first I had only one region on this page, and there is a submit button for this region (or page?). There is already a PROCESS corresponding to this submit button. Later I added another region, and I also want to add a submit button for this new region. But how can I add a new process for the new region? Based on my understanding, one single page can only have one SUBMIT PROCESS, right?

    I mean, I cannot invoke the procedure here directly, right?
    For example, I have a stored procedure in DB, which starts with:
    1 CREATE or REPLACE PROCEDURE procedure1
    2 (arg1 IN VARCHAR2)
    3 IS
    4 declaration1;
    5 BEGIN
    6 stmt1;
    7 END;When I want to use it here in the page process, I have to remove the first 3 lines, am I right?

  • Two submit buttons in a form

    Hello,
    I'm designing a process where a certain step contain a form with required fields. This particular step has 2 actions.
    Is it possible to have 1 action performing the validations as usual - i.e. required fields - and the other action simply submitting the form without validation?
    At,

    this can be done by implementing a if else condition
    if(frm1.but1.value=="xx") {
    frm1.action='page.jsp';
    frm1.submit();
    } else if(frm1.but2.value=='xxx') {
    frm1.action='page2.jsp';
    frm1.submit();
    -venkat

  • Jsp Submit button

    Hi,
    I am using a two submit buttons in my jsp, inside a form.
    I am using struts, and when i click one submit button i need it should open a new window.
    How can i use url so that it will also using action mapping..
    My code is..
    <html:submit property="workManagementButton" onclick=window.open('/manageWorkItem.do?action=init','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0')><bean:write name="alert" property="alertId"/></html:submit>
    but i can't open a new window with this code..
    Can any one help how i can moidify the above code..

    <logic:notEmpty name="alertForm" property="alerts">
         <logic:iterate id="alert" name="alertForm" property="alerts">
              <tr>
              <td>
                   <div align="center">
                   <html:multibox property="selAlertIds">
                   <bean:write name="alert" property="alertId"/>
                   </html:multibox>
                   </div>
              </td>
              <td>
                   <div align="center"><bean:write name="alert" property="alertLocalTime"/></div>
              </td>
              <td>
                   <div align="center"><bean:write name="alert" property="segmentSN"/></div>
              </td>
              <td>
                   <div align="center">
                        <html:multibox property="selMangedAlertIds">
                        <bean:write name="alert" property="alertId"/>
                        </html:multibox>
                   </div>
              </td>
              --%>
              <td>
              <div align="center">
              <bean:write name="alert" property="alertWorkItem"/></div>
              </td>
              <td>
                   <div align="center">                
                   <html:submit property="viewTrendButton"><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>
              <td>
                   <div align="center">                
                   <html:submit property="viewPatternButton"><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>
              <td>
                   <div align="center">
                        <html:submit property="workManagementButton" onclick=window.open('/manageWorkItem.do?action=init','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0')><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>          
              </tr>
         </logic:iterate>
         </logic:notEmpty>
    The above code is inside a form..
    So when i click workManagementButton it should open a new window and go through action mentioned..
    it is going through the path but i can't open a new window with above code..
    Can you please suggest..

  • 2 different submit buttons on an input form

    Is there a way that on my input form, I can have two submit buttons?
    Of course they will be labeled differently. The catch is, the difference between the two buttons is not conditional.
    Here's my form flow;
    Person X has a meeting with a supervisor. But in some cases, there can be more then one supervisor.
    So, the user fills in the supervisor's info and can either click Continue, which takes the user to a thank you page; OR the user clicks a button that's labeled 'Add Supervisor'.
    Is this possible? Would I use a custom trigger?
    Thanks!
    Peter T

    Hi Peter,
    I don´t think this is possible, because you can only define one button (e.g. ADDT´s KT_Insert1) for triggering the respective transaction, and any possible attached Custom Transaction is a "slave" of this main transaction.
    But in some cases, there can be more then one supervisor
    would it make sense to have the user select one or more supervisors from an array of Comma Separated Checkboxes ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Submit buttons stop working with large textarea

    I am using a PL/SQL portlet to display a form that has a large
    text box, using <TEXTAREA></TEXTAREA>, and two submit buttons,
    one for cancel and one for save. The database can accept 2000
    characters but when I fill the text box up beyond around 1400
    characters the buttons stop working.
    You just click away as if no code is behind them. Delete some
    text and they work again! The sizes that cause this seem to vary.
    If it helps I can paste the code in here, but didn't want to yet
    as it will clutter this message.
    Thanks,
    Chris.

    Got there in the end, but not sure if this is a bug or not so
    here is the answer just in case someone else makes the same
    mistake in the future:
    I was using some java script that required a form to have the
    name attribute set. I could not do this with HTP.FORMOPEN so
    changed HTP.FORMOPEN(curl=>'x.y.z'); to HTP.P('<FORM
    action="x.y.z">');
    Now I thought these two commands were exactly the same and most
    of the time they do seem to be, but the problem above goes away
    if using formopen.
    Bizzare!

  • Trying to create two form buttons side by side?

    Hi all...
    Kind of a strange question...  I've been messing around with this one for way too long now and thought I'd seek your help...
    Anyway,  one <form> with two submit buttons on them.  One is a "submit" button and the other is a "cancel" button.  I do have them working fine.  The "submit" button forwards the <form> data to the .php file for processing (and works fine).  However, the cancel button which does nothing more than calls on the index.html.
    Problem:  I can't get them to sit side by side on the form...  Or at least not without making the "cancel" button fail.  Remember this is all one form (or is it?)...
    The last lines of code for the "submit or cancel" buttons are below...
    <form action="contactlist.php" method="post" name="contactform" >  <----  This is the first line for the actual form.  The remaining code is for the buttons at the bottom of the form.
    <input name="submit" type="submit" value="submit"/>
    </form>
    <form action="index.html" method="post" name="contactform"/>
    <input name="cancel" type="submit" value="cancel" />

    If you are learning, I would not worry too much about JavaScript, just concentrate on PHP.
    Normally I would use
    <input name="cancel" type="button" value="cancel" onclick="window.location='index.html'">
    which simply saying that when the element (<input>) is clicked on, change the URL to 'index.htm'.
    The reason I used the function in my first example, is because DW supplies the function auromatically by following this procedure
    1. In design view, click the cancel button. In code view you will see the element highlighted and the status bar will show <input> highlighted as in
    Also in the properties window under the status bar, you will be able to change the button attributes.
    2. With the button highlighted, click on the Tag Inspector-->Behaviours tab, click the '+' and 'Go to URL' as follows
    This will pop-up a dialog.
    3. In the 'Go To URL' dialog leave the 'Open in' field with the default value and enter the requested URL in the 'URL' field, using the browse feature if desired.
    4. Click 'OK' and in the code view you will see the added JS function and the behaviour attached to the button. In the Behaviours panel you will also see the behaviour attched to the selected element.
    Gramps

  • Submit Button at AbsenceReviewPG

    Hi,
    I am doing some validations at AbsenceReviewPG, for that one i extended AbsenceReviewCO. After Clicking submit button depending on condition i need to show some error message.
    I used below code, but after clicking submit button it is going to next Page. Pls help
    package xxoa.oracle.apps.per.selfservice.absence.webui;
    import oracle.apps.per.dor.common.DocsOfRecordUtilities;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import com.sun.java.util.collections.HashMap;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.Hashtable;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean;
    import oracle.apps.per.selfservice.review.webui.ReviewCO;
    import java.util.StringTokenizer;
    import oracle.apps.fnd.framework.webui.OANavigation;
    import oracle.apps.per.common.CommonUtils;
    import oracle.apps.per.selfservice.review.common.ReviewParams;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OAFormValueBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean ;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageAttachmentLinkBean;
    import oracle.apps.fnd.framework.webui.OAInnerDataObjectEnumerator;
    import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    import oracle.jbo.*;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.ViewObject;
    import oracle.apps.per.selfservice.common.SSHRParams;
    import oracle.apps.per.selfservice.workflowservice.server.WFUtility;
    import oracle.jbo.domain.Date;
    import oracle.apps.per.selfservice.absence.webui.AbsenceReviewCO;
    import xxoa.oracle.apps.per.selfservice.review.webui.XXOAReviewCO;
    public class xxAbsenceReviewCO extends AbsenceReviewCO
    public xxAbsenceReviewCO()
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    //OAApplicationModule rootam = pageContext.getRootApplicationModule();
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("HrSubmit") != null)
    throw new OAException("There is no attachment kindly click on add button and browse your attachment. " ,OAException.ERROR);
    Thanks in advance,
    Hanimi

    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean
         at oracle.apps.fnd.framework.webui.OAWebBeanFormElementHelper.getParameterValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.checkResultItemsToValidate(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.validateOnSubmit(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.validateOnSubmitForLOV(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean
         at oracle.apps.fnd.framework.webui.OAWebBeanFormElementHelper.getParameterValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.checkResultItemsToValidate(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.validateOnSubmit(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.validateOnSubmitForLOV(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    PLease do the needfull

  • How to disable a submit button on click using javascript

    Hi,
    We have built custom pages for mobile device (PDT) using OAF.
    The application is running on mobile IE 6.12 browser. In mobile platform, the cursor style is not changing to hour glass upon clicking.
    Due to this, user is able to click the same button multiple times before the operation is complete and it is getting submitted multiple time. But the same is working fine in Desktop browsers.
    We have tried with ((OABodyBean)body).setBlockOnEverySubmit(true); But the API documentation states that
    "Sets If set to true, user input will be blocked after EVERY submit (not just PPR submits). This attribute is not supported on the following agent types: pda, phone, voice."
    Hence, I am trying with javascript to disable the submit button after the first click. The issue is, even in the desktop browser
    I am not able to get the button disabled after first click. Please help me.
    I have tried the following statments in PR. But none of them seems to be working.
    //Try 1: directly using id
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("document.getElementById('UpdateBN').disabled=true;document.getElementById('UpdateBN').submit()");
    //Try 2:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript:this.disabled=true;this.form.submit();");
    //Try 3:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("this.disabled=true;this.form.submit();");
    //Try 4: using a function
    static final String JS_MULTI_CLICK = "<Script LANGUAGE=\"JavaScript\"> "
    +" function DisabSub(btn)"
    + "{"
    + "btn.disabled = true;"
    + "}"
    +" </Script>" ;
    OARawTextBean rawMultiClick = (OARawTextBean)webBean.findIndexedChildRecursive("JSMultiClick");
    rawMultiClick.setText(JS_MULTI_CLICK);
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript: var obj =disable(this);return DisabSub(obj);");
    Can any one please help.
    Thanks in advance.
    Regards
    Saravanan

    Hi,
    Create two submit buttons A and B adjacent to each other.
    On page Load ,make A as rendered false and disabled true and B as rendered true. using SPEL.
    now on click of button B make button A as rendered true and Button B as rendered false through SPEL.
    In this way on button click the button will become disabled without the use of any javascript.
    Try it if it helps you...
    Thanks,
    Gaurav

  • Regarding multiple submit buttons in a page!!

    hi all,
    If i have two submit buttons in a html page then i can put them in two separate forms ,one form with get method and another with post method and pass the information to the servlet and then retrieve the values using doGet and doPost methods. How can i retrieve the information in the servlet if i have multiple submit buttons in my html page?
    pls help me.......

    is your question how do i know what button was pressed?
    in html
    <INPUT name="type" value="a" type="submit">
    <INPUT name="type" value="b" type="submit">
    <INPUT name="type" value="c" type="submit">
    <INPUT name="type" value="d" type="submit">in servlet
    String type = request.getParameter("type");
    // type = a | b | c | d

  • Disabling the Delete submit button in EditCurrentRecord

    Hello,
    oracle.jbo.html.databeans.EditCurrentRecord automatically generates two submit buttons ("Save Changes" and "Delete Record"). Is there a way that I can remove or disable the "Delete Record" submit button so that I can prevent the user from deleting a record.
    Thanks!
    Jack

    Hi!
    Save your time: examine and (unfortunately ...) rewitre entire (bugs bugs, bugs,....) Data Web Bean package. (Source: <JDEV HOME>\lib\jbohtmlsrc.zip.
    We found default package too bad for our project and successfully added many natural features:
    (Multible table filters, multible column edit current records, Filter marks, Report writing etc etc)
    null

  • Re-set submit button values

    I have a jsp with a form containing two submit buttons. The form action is to re-call the current jsp for some variable checks. Here is the problem:
    the first thing the jsp page does is check a variable...if the variable is NOT set, it redirects to a different jsp (without showing the buttons or anything from the original jsp) which works...if the variable IS set, should just display this page (buttons and all). The problem is, when this happens, both button values are not null...which makes it impossible to redirect depending on which button the user then chooses...as both values are already set.
    Man, I hope someone can make sense out of that :)
    thanks for your time,
    Jesse

    i want to ask a couple of things that are not specified:
    i) How can a button have a value???
    ii) If you have 2 buttons in 1 form then one of the two is to submit the form. What does the other one do?
    iii) I think the way you check it is wrong.
    Store a variable. If the variable is not set (null) do as it works, redirect. If the value is set with the value of 1 redirect him to one page, if with the value of 2 to another. The buttons store 1 or 2 to the variable? I hope i understood what you want to do. Waiting for an answer if it worked!

Maybe you are looking for

  • I have one ID for iCloud and one for purchases.  Not working

    I have a mess.   When I migrated from Mobile Me that Apple ID was assigned to iCloud, but I have more than 5,000 songs plus more than 300 apps on another Apple ID. According to Apple Document HT4895 http://support.apple.com/kb/HT4895 you can have thi

  • PO creation error - Info-record

    Hi All, I am trying to create the PO for a particular material,but i am getting an error on saving the PO. "Please contact the responsible person for Info-rec" The Info-record for that material for that vendor is present when i checked in the t-code

  • How to use Amplitube plugin?

    I installed Amplitube Live, put it in the Audio/plugins/components folder and have no idea how to use it in GB. I want to see what it will do to harmonica. I tried another IK product, a demo, Sampletankfree, and got nowhere with that either. IK says

  • How not to print the background?

    How can I only print the content of a sprite (here a simple text) without the background color of the document? Thanks for your help.

  • Question(s) Regarding Personas Capabilities

    Hello, We are new users of Personas and are trying to figure out all of the tool's capabilities. Below are some questions that our users had when determining whether or not the Personas tool can replace some GUI screens: 1) Is it possible to have fie