Skip to Content
author's profile photo Former Member
Former Member

Submit button on Adobe Interactive form does not send data back to ABAP

The integration of my ABAP View and Adobe works fine getting data into the form. The form is interactive and I am able to change the data. I am using ZCI and the XML Context. I display the FirstName attribute both on the ABAP View, and the Adobe Form. When I press the SUBMIT button the first time, it disables that button, but the ABAP View is not updated. I have an ONACTION event, but it doesn't get triggered at all.

Here are my specs:

Adobe Reader 8.1.1. Local

Adobe LiveCycle Designer 8.01.3250.1.491864

NetWeaver 7.0 SP19

HR Support Pack 48 and Enhancement Pack 2

Add a comment
10|10000 characters needed characters exceeded

Related questions

15 Answers

  • Posted on Feb 18, 2010 at 04:21 PM

    Go to the screen in SE80 where you´ve put the interactive form on your WD screen. There are properties, like the form name etc. Hope you can recognize what properties I mean. And in this table (of properties) like second from bottom there is attribute where you have to write in the name of your onSubmit method. This way you tell the WD what handler (method) he is supposed to call when the form Submit button is pressed.

    Otto

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 18, 2010 at 03:35 PM

    Have you binded the WD context with the field on Adobe Form? Check the bindings inside ALD.

    Also you need to write the code in onSubmit action handler.

    Chintan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2010 at 03:47 PM

    Yes. I bound the Context to data elements on the Adobe Form. They are getting displayed correctly, and I'm able to update them. I was not aware that I had to add code to the OnSubmit Action because the documentation (and video that I watched) did not say it was necessary. Do you have any examples of code that I could look at?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 18, 2010 at 04:08 PM

    Insert the ZCI script, if it is already present, refresh it. Maybe you can update the ZCI script at all?

    Are you sure you have used the right submit button?

    Did you maintain the onSubmit setting in interactive form element in WD designer?

    Otto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2010 at 04:15 PM

    Insert the ZCI script, if it is already present, refresh it. Maybe you can update the ZCI script at all?

    Are you sure you have used the right submit button?

    Did you maintain the onSubmit setting in interactive form element in WD designer?

    I inserted the ZCI script and refreshed it by inserting it again. I used the Submit button from WebDynproNative. I'm not sure what you mean by "Did you maintain the onSubmit setting in interactive form element in WD designer".

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2010 at 04:27 PM

    Thanks Otto. Now I understand. Yes, I do have an OnSubmit Action specifed in the OnSubmit event. I only have "dummy" code in that Action, however. I tried to debug that "dummy" line of code and when I press the Submit button on the Adobe Form, it never makes it to that Action.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2010 at 04:50 PM

    Yes Chintan. Adobe Credentials are successfully installed. readOnly is set to FALSE and Enabled is set to TRUE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2010 at 06:12 PM

    I'm not sure what you're asking for, but this is what I have.

    I have the Context set up in the View with the 2 fields defined as STRING. I'm binding through the DataSource Property of the InteractiveForm object. The 2 fields get transferred correctly into the Adobe form because I can see the values on the Adobe Form and the ABAP View.

    When I click on the Submit button, the only thing that happens is that the Submit button gets disabled (I can't click it again). If I right-click outside the Adobe window it locks the mouse and keyboard.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      In your form, click on your Submit button and check the script editor to see what code is defined in the "Click" event.

      You need to have something like this:

      // DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20080925121058.495967.459668 - SubmitToSAP.xfo
                      ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
      // END OF DO NOT MODIFY
      
      

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2010 at 12:49 PM

    That's exactly what I have:

    -


    ALL.#subform[0].submitToSAP1::click: - (JavaScript, client) -


    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070410093956.383622.376748 - SubmitToSAP.xfo

    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");

    // END OF DO NOT MODIFY

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sri,

      This ADS version was released with SAP NetWeaver SP15 (Java stack). So it's possible that the problem is caused by the different SP versions on your ABAP/Java stack (SP18 <--> SP15). Upgrade your Java stack, or even better: Upgrade both stacks to the newest available SP!

      Ralf

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2010 at 04:33 PM

    I have been having the same problem. I gave up and I am using the button I defined on the view. I had it fire another event onPush(). The context is being updated with the populated data from the form which allows be to validate it as necessary. Using buttons on the view also gives you the flexibility to define multiple buttons. I will watch this thread to see if another solution is found, but in the meantime I will carry on using the button on the view.

    Good Luck

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.