cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Submit buttons in Adobe form !

Former Member
0 Kudos

Hello Experts,

Scenario :

Form has Material number as input field and Material description should get automatically populated( maybe as a script or button , dont know yet ). Then the form is to be submitted at the backend.

I have created an Adobe interactive form with Multiple Submit buttons( one is Submit toSAP) button , other is a normal pushbutton( for Material desc to be populated ) . I have been able to Submit data at backend.

But problem is there is only one event on the Interactive form UI element properties.

Please suggest how to achieve the above ? via script or sm code in web dynpro ?

System Config : WAS 6.4 / SP12 .

Need a quick resolution. Generous points for help.

Regards,

Sonika

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sithi,

Thanks for the pointer.

I am getting the following error, I have used ISR control button .

Scrip error : language is formcalc, context is xfa[0].form[0].#subform[0].ISR_FormEventButton[0].script = // set ISR event for badi processing in backend.

$record.control_param.ISR_EVENT = ''Custom_event".

Error : accessor $record.control_param.ISR_EVENT is unknown.

Request you to kindly advice.

Regards,

Sonika

Edited by: Sonika Kapil on May 26, 2008 3:50 PM

Former Member
0 Kudos

Hi Sonika,

control_param structure is used in case of ISR forms, but I dont think your form is related to the ISR.

Use a context attribute, and set its value to get the Material description from backend.

Like you can define an attribute in context, "GETDESCRIPTION", and set its value at the exit event of Inputfield to "GET".

$.parent.GETDESCRIPTION.rawvalue = "GET"

app.eval("event.target.SAPSubmit();");

And at the click event of the button you can write:

$.parent.GETDESCRIPTION.rawvalue = "SET"

app.eval("event.target.SAPSubmit();");

And in the backend, read the value of this attribute and perform the desired action.

Hope this helps,

Amit

Former Member
0 Kudos

hi,

Have u defined the events in the BADI.

Regards,

Sithi

Former Member
0 Kudos

Hi Sonica,

define the user event in the mousedown .

and execute the event on click.

regards,

Sithi

Former Member
0 Kudos

Hi Sithi,

Can you provide some code snippet , as i am new to adobe forms ?

Regards,

Sonika

Former Member
0 Kudos

Hi,

code as below in the mousedown.

$record.CONTROL_PARAM.ISR_EVENT = "................"

code as below in the click

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

Regards,

Sithi