cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Interactive Form "Submit To SAP"-Button

Former Member
0 Kudos

Hello,

I have the following problem: I have implemented a IF solution with ABAP + BSP + Interactive Forms. We have a landscape with Test, Quality and Productive System. I have a "Submit to SAP"-button on my interactive form. The Url to which I want to send my Form back to my system, should be generated dynamically depended on Test, Quality or Productive system, so that I only have to design ONE form and not THREE forms (one for each system).

So what I do is the following:

I generate the PDF-object in ABAP with my XDP-File and my Data.xml. In my Data.xml I have integrated a special tag <urltosapsystem> where I generate my URL for the button, dependend on which system I am.

On the Interactive Form I want to parse the XML-file for my special tag <urltosapsystem> via JavaScript and assign the URL for the submit-button dynamically.

So my question is:

How can I assign the URL for the submit-button dynamically via JavaScript:

- On which object (on the whole form,on the button) and which event (onClick, OnPreSubmit,...) can I insert my JavaScript code

- How does the JavaScript-Code has to look like

Thanks for your help,

Andreas

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

you could just pass the url to the action parameter of htmlb:form

<htmlb:form action="the url " >

Regards

Raja

eddy_declercq
Active Contributor
0 Kudos

Hi,

I think it's a combination of 2 things.

First of all, the changing of the action via JS is explained at

http://www.javascript-coder.com/html-form/html-form-action.phtml

The changing of the URL depending of the envirmonment is explained in this recent thread:

https://www.sdn.sap.com/irj/sdn/collaboration

Eddy

Former Member
0 Kudos

Hi Raja,

I don't want to dynmically set the URL of the <b>HTML form</b>. What I want is to dynamically set the URL of the Submit Button of the <b>Adobe Interactive Form</b>.

Regards,

Andreas

athavanraja
Active Contributor
0 Kudos

Ok,

i am sorry, i dont have knowledge on Adobe Interactive Form.

Regards

Raja

athavanraja
Active Contributor
0 Kudos

Hope you are aware that there is a special forum for

Regards

Raja

Former Member
0 Kudos

Sorry guys,

I didn't realize that there is a special forum for interactive forms. I have now posted my question there.

Regards,

Andreas