Skip to Content

Help needed passing form parameters to iView from Masthead?

Curious situation here.....we have customized our masthead to include a HTML form. The form "action" is set to "http://<our portal>/irj/portal?NavigationTarget=ROLES://<pcd path down to page>". The form method is set to POST. All users have this specific role so it will be "targetted" correctly. The specific PCD page is set for URL isolation and set to "" to pass the application parameters. Likewise, the page contains an IAC iView which is also set to URL isolation and "" for any incoming parameters.

Now, here's the problem. We have several form fields. The submit of the form works correctly in that it will jump the user to their correct "target" page/iView in the correct role. However, NONE of the form fields come across. I would expect that the form would be able to pass over the query values to the page that would then pass it to the iView and the iView would "see" them correctly. We just can not seem to get the form values from the masthead to the IAC!

Any help?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 18, 2006 at 02:25 PM

    Solved my own problem....for is the code....this was placed in the portal Masthead that we customized....the trick was that I had to write a script to construct the URL encoded parameter querystring to pass to my iView and pass it over in the "DynamicParameter" key....

    <!-- Here I am bascially building the URL to redirect to and having to URL encode the parameters to pass along to my page/iView
    function SubmitForm(srchInput){
      var ActionURL = 
      var AppendURLParam = '&DynamicParameter='; //NOT &ApplicationParameter=
      var PassThruParams = '~OkCode=SEARCH&param2=X&selection-value[1]=';
      PassThruParams += srchInput;
      PassThruParams = escape(PassThruParams);  //this is the trick! haha
      ActionURL += PassThruParams + PassThruParams;
      window.location = ActionURL;  
    // -->
    <FORM name="frmQuicksearch" METHOD="POST" ACTION="" style="margin: 0;">
       <input type="text" name="searchstring" value="" size="20" style="border-left:EE0000 2px ridge;border-top:EE0000 2px ridge;border-bottom:#efefef 1px ridge;border-right:#efefef 1px ridge;font-size:10px; padding: 1px;">
       <!-- this makes a nice portal style button -->
       <a href="javascript:SubmitForm(frmQuicksearch.searchstring.value);" class="urBtnStd urV" id="btnSearch" ct="Button" style="white-space:nowrap;"><span ct="Caption">Go</span></a>

    Hope this helps someone else!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.