Event to be written in submit button in MAU Enhancement

Hi All,
I am doing enhancements in MAU application.
I want to pass parameters from my jsp to the controller on a button submit.
Do I need to write an event for this in the view and the controller file ?
Can any one please help regarding this.
Thanks and Regards
Neha Mahanty

Hi,
best support in that case: have a look into the enhancement documents on SERVICE.SAP.COM/INSTGUIDES -> xapps- xapps mobile -> xMAM XX
There you will find a great step by step walkthrough how to do that.
Hope it helps!
Regards,
Oliver

Similar Messages

  • Using script in a dummy submit button to check for digital signature

    Is it possible to add script to a dummy submit button to stop it from submitting if a signature field is not signed?  Perhaps adding something like what I have below.  I know the syntax isn't right.  I just haven't been able to get it to work.  Thanks.
    if (SignatureField1 == null)
         xfa.host.messageBox("Please digitally sign before clicking Submit!");

    Thanks, I took a look at that.  I couldn't make that solution work for me because there are four submit buttons in my form, as it passes through several reviewers.  So what I had to do is enter the code below into the Click event for each section's Submit button, so that it at least gives a reminder to sign before submitting.  It doesn't stop the e-mail from popping up, though, unfortunately.
    var oState = event.target.getField("form1[0].Page4[0].DeptReview[0].EA_Signature[0]").signatureValidat e()
    if (oState == 0)
      xfa.host.messageBox("You have not signed the form. \n\nPlease click OK and then click the signature field to sign the form. \n\nThank you!");

  • How to trap Submit button event in OAF

    Hello,
    I'm doing controller extension for create account button in Customer UI.
    Issue: I'm not able to trap the table action to add extra validation logic.
    I tried to use pageContext.getParameters("CreateButton") but it didn't work i.e. debug message was not printed written inside if statement.
    Button Structure:
    TableAction
    Flowlayout
    Submit button.
    Code:
    public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            //super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            ArrayList exceptions = new ArrayList();
            OAFlowLayoutBean oaflowlaybean =
                (OAFlowLayoutBean)webBean.findChildRecursive("TableActionsRN");
            OASubmitButtonBean vbuttonBean =
                (OASubmitButtonBean)oaflowlaybean.findChildRecursive("CreateButton");
            String buttonId = vbuttonBean.getID();
            String buttonId12 = vbuttonBean.getName();
            String asd=vbuttonBean.getEvent();
            String s = pageContext.getParameter(EVENT_PARAM);
            String s1 = pageContext.getParameter(vbuttonBean.getName());
                if (s.equalsIgnoreCase("CreateAccount")) {
                OAViewObject vo =
                    (OAViewObject)am.findViewObject("HzPuiAccountTableVO");
                if (vo != null) {
                    pageContext.writeDiagnostics("Jai-1", "VO Found", 1);
                    OARow row = (OARow)vo.getCurrentRow();
                    if (row != null) {
                        pageContext.writeDiagnostics("Jai-2", "Row Found", 1);
                        String partyid =
                            (String)row.getAttribute("PartyId").toString();
                        pageContext.writeDiagnostics("Jai-3", "PartyId" + partyid,
                                                     1);
                        int PartyNum = Integer.parseInt(partyid);
                        String partyacctcnt = null;
                        try {
                            OracleConnection conn =
                                (OracleConnection)pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
                            pageContext.writeDiagnostics("Jai-4", "Inside Try", 1);
                            String query =
                                "SELECT count(1) lcount  FROM HZ_CUST_ACCOUNTS WHERE party_id=:1";
                            PreparedStatement stmt = conn.prepareStatement(query);
                            stmt.setInt(1, PartyNum);
                            ResultSet resultset = (ResultSet)stmt.executeQuery();
                            if (resultset.next()) {
                                pageContext.writeDiagnostics("Jai-5",
                                                             "Inside Result Next",
                                                             1);
                                partyacctcnt = resultset.getString("lcount");
                            stmt.close();
                        } catch (SQLException sqlexception) {
                            throw OAException.wrapperException(sqlexception);
                        int i = Integer.parseInt(partyacctcnt);
                        /*   String HoldFlag = (String)row.getAttribute("Attribute11");
                        // Check Hold Flag: "Y" then restrict to create new account
                        if (HoldFlag == "Y") {
                            pageContext.writeDiagnostics("Jai", "Inside Hold Flag", 1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        // One Party-One Account: Greater or Equal to 1 then throw error mesaage
                        if (i > 1) {
                            pageContext.writeDiagnostics("Jai-6",
                                                         "Inside Account Check",
                                                         1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        if (exceptions.size() > 0) {
                            pageContext.writeDiagnostics("Jai-7",
                                                         "Inside Exceptioon calling",
                                                         10);
                            OAException.raiseBundledOAException(exceptions);
                        } else {
                            pageContext.writeDiagnostics("Jai-8",
                                                         "Inside else Exceptioon calling",
                                                         10);
                           // super.initParametersPFR(pageContext,webBean);
                            vbuttonBean.setFireActionForSubmit(null, null, null, false);
                            super.processFormRequest(pageContext, webBean);
    Please suggest the how to overcome with above mention issue.

    Hi Kiranmai,
    You can capture the event of the radio button in the following way in oninputprocessing.
    DATA: event             TYPE REF TO if_htmlb_data,
                   radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
             event = cl_htmlb_manager=>get_event( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
               radioButton_event ?= event.
               ENDIF.
    you can get the attributes of clicked radio button in
    event->event_class
    event->event_id.
    event->event_name
    event->event_type
    event->event_server_name
    In layout define the radio button as
    <htmlb:radioButtonGroup   id          = "test_id">
            <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
            <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
            <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
          </htmlb:radioButtonGroup>
    Hope this will solve your problem.
    Donot forget to assign points for helpful answers.
    Regards
    Aashish Garg

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • I've set up an event and published it, but it won't allow for registrations.  The SUBMIT button is grayed out.  Thoughts?

    I've set up an event and published it, but it won't allow for registrations.  The SUBMIT button is grayed out.  Thoughts?

    The submit button is greyed out in case the registration page is being viewed in preview mode.
    Please check if the following string is present in the event registration URL:
    "preview=true"
    If it is present, please try by removing this string.
    Thanks,
    -Nitin

  • Submit button from Adobe form doesn't trigger event???

    Hi all,
    I am having this weird problem, the submit button wont trigger any event i register to "submit" and so as to the "check" event. when i send the link to one of my colleagues, the button can trigger the event.
    i am using adobe reader 8 on IE 6, didn't solve the problem when i downgrade it to reader 7.
    any advice???
    Thank you.

    Hi,
    I too had a similar problem sometime back regarding the Submit button. Since you are saying that it is working for your colleague but not you, I predict that something wrong with the network you are in, compared to that of your friend.  Have you provided the Preprocessor URL for the button in the Adobe designer?
    Cheers
    Madhu

  • Submit button to trigger BSP event

    Hi,
      I have a BSP applicaition which is already existing, now I need to integrate a Adobe form for User Interface.. On clicking the Submit button in the Interactive form.. I should trigger an event and at the same time it should call the 'On Input Processing' method of the BSP application.
    Please help me if some one has done it .. or give ur suggestions .. ?
    Thanks
    Sivaraj

    Hello Otto,
    Thanks for the reply,  I created my application refering the above blogs.
    I have BSP Page
    <htmlb:content u2026.>
    <htmlb:page u2026.>
    <htmlb:form>
    <<AREA FOR DISPLAYING ERROR/SUCCESS MESSAGES >>
    << HTMLB Buttons for SAVE/PRINT_PREVIEW/BACK >>
    <iframe src="getPDF.do">
    u201DControl getPDF.do returns Adobe Interactive Form in PDF format
    </iframe>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    in getPDF.do I'm getting PDF Interactive form as PDF Fiel, Inside the form there is a Save button.
    Currently if I click the save button in Interactive for , only the IFrame & Adobe Form is getting refreshed,
    What I want is 
    On Click of Save button of ADOBE, It should trigger Click event of Save button in BSP Page.
    Is there any script event in Adobe Form to access window.document object of my main page?
    Regards
    Geogy

  • Javascript Submit button onclick event handler

    Hi,
    I am having trouble getting the onclick event handler of a form to execute when the button is pressed. I am trying to open a page in a new window depending on if the user selects that option in a checkbox.
    There is one form(id='graphform') and 2 submit buttons, each with a checkbox before it. I want the new window to open only iuf the right checkbox and matching submit button has been checked.
    One of the checkbox/button pair: The onclick="checkWindow('w1','graphform');" is never getting called.
    <input type="checkbox" id="w1" name="win1" style="margin-right: 10px" value="window"  onclick="javascript:document.gform.win1[0].checked = true;"><a style="margin-right: 10px">Graph in new window</a>
    <input type="submit" value="Create graph" onmouseover="this.form.cumulat.value='0';this.form.graphGroup.value='Consumption'; document.getElementById('hintSubmitStop').value='1';" onclick="checkWindow('w1','graphform');" onmouseout="document.getElementById('hintSubmitStop').value='0';" /></td></tr>Javascript window opener:
    function checkWindow(win1, str){
              var formObj = document.getElementById(str);
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
                   formObj.target = "_blank";     
                   formObj.action = "graphDisplayFrame.jsp";     
         else if(checkBoxObj1.checked == false){
                   formObj.target = "_self";
                   formObj.action = "graphDisplay.jsp";
    }Any suggestions?
    J

    You're storing the value in "checkBoxObj" and in the next line you use different variable name as "checkBoxObj1".
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
    instead of "true', try      if(checkBoxObj.checked == 1){

  • Submit button fails to call event

    Hi
    I hav a webdynpro app where I am using a PDF form.
    The Submit button does not respond.
    When I take a project from one of my colleagues and I try to run it in my
    development environment the submit button works well and responds to my clicking
    by going to the event handler attached to the action.
    The environment we use is the same, so are all the Web Dynpro, Adobe Reader, and Lifecycle Designer versions.
    Anyone seen such behaviour?
    Regards
    yuval

    Hi,
    Otto is right.
    SAP recommends ZCI rather than instead of ACF.
    As per the note: 766191, it is supported upto reader 9. I am not sure about 9.1.
    Please refer to Note: 834573,1055911, 1042394 for ZCI implementation.
    Hope this would be helpful.
    Regards,
    Aditya Deshpande
    Edited by: Aditya Deshpande on Dec 1, 2009 1:32 PM
    Edited by: Aditya Deshpande on Dec 2, 2009 9:02 AM

  • HTTP Submit Button vs event.target.submitForm

    Dear All,
    I have a problem that looks like I would need some expert help to resove.
    I have designed a small Form with Acrobat LiveCycle Designer ES 8.2
    The plan is people to fill out the form and submit it to a script on a web page.
    Here is the problem.
    When I insert a regular HTTPSubmit button. Everithing is working just fine. All th fields are submited, and I can process them from there with my script.
    However, when I try to make a regular button and add javascript to the click event.
    event.target.submitForm({cURL: "http://mysite/myscript.php", cSubmitAs:"HTML", cCharSet:"utf-8"});
    The form is submited but non of the fields are.
    As an example output from REQUEST array in PHP.
    With the regular HTTP Submit button I get:
    Array
        [familyname] => 1
        [SubjectNumber] => 2
        [Site] => 3
    While with the above javascript I get:
    Array
        [form1] => Array
                [0] =>
    Looks like with the Javascript I somehow cannot submit the actuall fields.
    Finally, let me tell you the reason why I even want to use Javascript instead of the regular HTTP Submit button.
    My plan is so people can actually change the location where to submit the form.
    From what I read if I use a regluar submit button, the URL must be hardcoded and cannot be changed (selected, by the user dinamically)
    While if I use javascript then I can easily have a text field where people can enter the site where they want to submit the form and use it.
    Thank you very much for your help
    Please let me know if you need any further information
    Regards
    Tsvyatko

    Hey gays, thanks for answering.
    However, looks like I still have problems.
    When I insert a regluar HTTP submit button, it asks for the URL or it will give error.
    Anyhow, if I leave the URL setting blank, and try to execute the code u mentioned, I get a messege, "submit canceled" and nothing is happening,
    And if I enter something in the URL, looks like it still overites the code and submits the form the the hard coeded url.
    In addition, the regular submit button does not even allow me to enter code in the click even, so I did enterend in the mose in even,
    as to execute the code before the button is clicked.
    In addition I also tried to enter the even in a text field exit which I was hoping to use so the user can enter their own url.
    In other words.
    could please be more specific.
    On which even shown I enter the code.
    p.s.
    Finaly,
    in Form Calc
    If I enter this on the mouse enter of the button:
    form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target = form1.SCOPA_p2.HTTPSubmitButton1_txt.rawValue;
    I get error accessor form1.SCOPA_p2.HTTPSubmitButton1.event__click.#submit.#target is unknown
    Any other thoughts
    Thanks
    Tsvyatko

  • Unable to capture the submit button event in OAF

    Hi
    I am facing a problem extending the NavigationCO controller on "/oracle/apps/per/selfservice/review/webui/ReviewPG". I just want to throw some exception when the user clicks the submit button in the PFR. I have used the following code but i did not find any solution. Can anyone help me out in this issue. When i used the first method its displaying some error on submitting the page but where as in the second method its commiting the data instead of throwing an exception.
    I tried the following methods:
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if (pageContext.getParameter("HrSubmit") != null)
    super.processFormRequest(pageContext, webBean);
    pageContext.forwardImmediatelyToCurrentPage(null,true, "Y");
    throw new OAException("Test Message");
    else{
    super.processFormRequest(pageContext, webBean);
    2.
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if ("HrSubmit".equals(pageContext.getParameter(EVENT_PARAM)))
    throw new OAException("gsgfshghjgashfa");
    super.processFormRequest(pageContext, webBean);
    }

    Hi Gaurav,
    Thanks for the repsonse. I tried the same code but its not throwing the exception its directly launching me the confirmation page. Actaully the controller is redirecting to confirmation page on submit. But now i want to check some condition on submit and throw an exception if the condition is not satisfied. If the condition is satisfied i want the seeded controller action to take place.
    I tried using "pageContext.forwardImmediatelyToCurrentPage" and "pageContext.forwardURLToCurrentPage" but i did not achieve success in it.
    If the above mentioned "pageContext.forwardURLToCurrentPage" is right could you please give me an example to get thjis resolved.

  • Assigning Events to a submit button

    I am new to SharePoint Designer 2010 and I am designing a website for reporting technical issues/problems. It is in aspx format, but I need the submit button to do three things. 1) create a confirmation page, 2) send an email message to an email address
    and 3) assign a number to the issue. How exactly is this done in ASP.Net/SharePoint Designer 2010? Thank you.

    You can do these using JQuery and SharePoint Designer Workflow.
    Create a list and create the required fields. Customize the list form if you need using SharePoint Designer.
    Not sure you want the confirmation before or after submit. Refer to the following URLs which has an example for both using jQuery.
    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_27552319.html
    http://formsdesigner.blogspot.com/2013/04/redirect-after-sharepoint-form.html
    Send email using SharePoint Designer workflow. Refer to the following article
    http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    SharePoint already generates an ID value for every list item. You can either use that ID or use a custom ID using a calculated field.
    --Cheers

  • Submit button not triggering in adobe form : webdynpro abap

    Hi All ,
    I am a beginenr in Webynpro Abap . I am trying to catch a submit buttion from a Adobe form developed in webdynproabap .
    I have 2 fiels along with the submit button ( of type submit to SAP )
    I have written the code in the view action onsubmit and the the java script in the form is also there .
    form is of type ZCL
    I am not able to trigger the event. what can be the issue . should i do anything more ..
    i tried with the  2 type of submit button one is hanging other one there is no reponse .. can any one let me know what can be the reason .
    Regards
    Abhilash

    Hi
    I have the below code in the script. I have hardcoded the breakpoint in the event code as see below .
    containerfoundation_JS.sendmessageTocontainer(event.target,"submit"," ", " ","","") .
    in the event I have the code .
      DATA lo_nd_hsr TYPE REF TO if_wd_context_node.
      DATA lo_el_hsr TYPE REF TO if_wd_context_element.
      DATA ls_hsr TYPE wd_this->Element_hsr.
      DATA lv_pernr TYPE wd_this->Element_hsr-pernr.
    break-point.
    navigate from <CONTEXT> to <HSR> via lead selection
      lo_nd_hsr = wd_context->path_get_node( path = `ADOBE.HSR` ).
    @TODO handle non existant child
    IF lo_nd_hsr IS INITIAL.
    ENDIF.
    get element via lead selection
      lo_el_hsr = lo_nd_hsr->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_hsr IS INITIAL.
      ENDIF.
    @TODO fill attribute
    lv_pernr = 1.
    set single attribute
      lo_el_hsr->set_attribute(
        name =  `PERNR`
        value = lv_pernr ).
    I activaated the trace also I am getting the error
    "SAPWD_ZciWrapper_setMessageHandler (55) : Set message handler for control.."
    I serached OSS . I got note 1223121 which says to run report FP_CHK_REPORT ..still it is not working .

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • Submit button in Web Dynpro Native and ActiveX tab

    We use LiveCycle Designer 7.1 in a SAP environment (CRM5.0/NW2004S 7.0.06). We are creating an online Interactive Form via Web Dynpro for Java using NW2004S.
    In NW2004 you have to possibility to select the 'Submit to SAP' button from the Web Dynpro tab. However, in NW2004S this has been changed into 2 submit buttons, one on Web Dynpro Native and one on Web Dynpro ActiveX tab. Does somebody know what the differences are compared to NW2004? When to choose what button and what kind of code you need to enter to send the data the SAP?
    kind regards
    Angelique Heutinck

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

Maybe you are looking for

  • Dynamically how to get the meta data of an ui element which is custom one

    Hi All , In SRM , I want to know the meta data declarations of an UI element in my webdynpro component  ..How to know this ..Can anyone help me in this ..I want to know the meta data of an ui element . Sandeep

  • Downloads disappear from box after completion. (2nd try, I screwed up the first - sorry)

    When I perform a web download, the download box opens and one sees the download progress, however the box empties out after the download completes, (pdf or exe files). I now have to search out the file do do anything with it such as run it. It never

  • Cisco ASA 5505 - Keeps dropping internet connection

    Hi, We are having some issues with our Cisco ASA 5505 unit, it intermittently drops the outside interface connection. Internally the network appears to be working correctly with no issues. Even though the outside interface indicates it is 'up' access

  • Advise required for the scenario logic

    Hi Experts, SCENARIO NAME: FILE(text format) to IDOC. requirement. ex. input is 10 line items if any of the line item fails that supposed to throw exception what ever success lines are there that should process with out any fail or idoc should genera

  • Drill Down in webi same like Bex?

    Hi, in BEx query if i have a free characteristics i can right click on result section and drill down to which characteristic i want. is there i can do the same way in webi? when i click on Drill in Analysis tab i dont see any objects there to select.