Skip to Content
0
Former Member
Oct 15, 2004 at 01:55 PM

Getting Form Posted Variables in Web Templates

30 Views

Is there any way in a Web Template to receive the variables sent by "Post" method from a page. For example, I call the BEx URL from a page that's not from a Web Template, and now I want to receive the variables I send through posting the form.

<form action="http://myhost/sap/BEx2">

<input type="hidden" name="somevar" value="somevalue">

<input type="hidden" name="CMD" value="LDOC">

.

.

All hidden fields needed to execute my web template

.

.

</form>

Now, I want to get somevar in the template. Javascript cannot get "post" variables, only "get" variables. Another question is will I be able to keep sending this variable throughout all actions of the Web Template (user clicks on a drilldown, it passes the variable, they filter, it passes the variable to the next page, etc.)

Maybe there's a way to enable ASP in a Web Template so I can use session variables?

Thanks,