cancel
Showing results for 
Search instead for 
Did you mean: 

Post data from BSP to an ITS application

Former Member
0 Kudos

Hi BSP experts,

I am calling a BSP application with an input form from a B2B ITS application. This works good so far. When the BSP page is called, the ITS application sends automatically a so called hook_url, which contains the link to the ITS application with the current session_id. I read this hook_url within my BSP application with the statement hook_url = request->get_form_field( 'HOOK_URL' ).

This means I know now how to call again the ITS application.

The ITS application has a special open interface and is waiting for a set of fields, e.g. name, address...

Here is now my problem. I would like to fill out the form on my BSP page and would like to post the data from the form (contains the interface fields) back to the ITS application. The BSP page should close after pressing a button "Send back" and the data should be visible now within the ITS application.

How can I post the data back to the ITS application and how to fill the interface of the ITS application. Is it possible for filling the interface to use the statement

request->set_form_field? Or is there a better one? Is there any method available to post data or should I use javascript?

Thanks in advance for your help.

Best regards

Tom

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I guess this won't solve my problem. Before I send back the data I have to do a mapping from the form fields to the interface fields.

Is that possible with request->set_form_field (name = 'interface_description' value = form_description').

But now, how to post the data back?

Regards

Tom

eddy_declercq
Active Contributor
0 Kudos

Hi,

In that case, you can put the fieldnames already in the form:

<input type="text" name="interface_description" value="<%=form_description%>">

if you need it also in the form_description, you can add:

<input type="hidden" name="form_description" value="<%=form_description%>">

Alternatively, you can try to concatenate it inot one long URL strong on the form of

server/page.htm?par1=value1&par2=value2

and put that string as param for your gotopage

Beware that this method is restricted by a maximum size and thus not suitable for long field names or values or many fields.

Eddy

athavanraja
Active Contributor
0 Kudos

as Eddy suggested why not pass the values to the ITS service thru URL.

check out the following weblog on how to pass parameters to ITS url.

<a href="/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008">Pass Parameter to ITS URL</a>

Regards

Raja

eddy_declercq
Active Contributor
0 Kudos

Hi,

Pls don't forget to reward points and close the question if you find the answers useful.

Eddy

Former Member
0 Kudos

I think you should use javascript where you assign the value to the form elemets. in intialisation or in on input processing you can assign the form elemts also.

does this solve your problem.

eddy_declercq
Active Contributor
0 Kudos

Thomas,

It is just a matter of specifying the URL of your ITS app in the action parameter of the <form>

<form action="itsserver/itspage.htm" method="post" name="myform">

</form>

Eddy