cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameter to URL Iview within a link

Former Member
0 Kudos

Hi,

I have an URL iView that must show a web application. On parameters definition, I have added parameters of user-mapping, and these works fine. I have to call these Iview from a link on other iview, and I need to send a parameter to the URL iView, to this add it on the URL to generate de final URL.

For example:

URL iview definition:

URL: http://myapp.com

Request Method: POST

Parameters:

username: Mapped User

password: Mapped Password

Property editor:

Parameters to Pass from Page Request (for URL Isolation): *

The page where this iview is included, is configured as "Isolation Method: URL"

Then I call URL iView from other iview, with PCD location, and I add the parameter "course" at the final of the link:

http://hcm.local:52000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.mycomp.content!2fco...

I need that URL iview, get this parameter, and resend it with POST method (as done with username, password) to the customized URL (http://myapp.com).

I have been looking information about isolation method, and I believe I have all well configured. Anybody know how can I make it?

Thanks in advance,

Javier

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

this is just a guess. I think the problem here is the POST method you are using.

The server ignores the request paramter because a for POST request the paramters are expected to be in the body.

So instead of using just a link with an URL, you could try to use a form with a hidden field.

Put the Iview url into the form action and put your parameter to pass into the hidden field.

For the link use a javascript function that submits the form. I think that will work.

Former Member
0 Kudos

Hi,

Finally I solved my problem configuring URL iview with parameter "feching method: client-side". I configured user-mapping parameters to resend to the iview, and on parameter "parameterers to forward: * ", to resend additional parameter received in the call to this iview. Method i use is GET, because with POST it doesn't work.

Thanks for helpful.

Javier

martin_eberle
Explorer
0 Kudos

How did you solve that?

I've an URL iview with "*" as parameter forward, but the additional parameters never get down to the url (fetch with GET) requestet from the destination server....

Thanks Martin

Answers (0)