Add url parameter in navigation-case

Hi All,
We need to add a param to the URL when doing navigation, the param value is come from a session bean. I tried following, but not working, the param showed in URL is just what I typed in the <to-view-id>, i.e. not runtime replaced by the session bean attribute value... does any one know how to do this?
<navigation-rule>
<from-view-id>/user/PODList.jspx</from-view-id>
<navigation-case>
<from-outcome>detail</from-outcome>
<to-view-id>/user/PODDetail.jspx?crmid=#{userInfo.userId}</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Thanks so much.

An update on this:
I tried what Simon suggested. Turns out that it works perfectly !! It does exactly what I need. Thanks so much Simon. You are really an expert and great helper !!
Thanks so much for your help. !!
One more question to Simon and thread that this ViewHandler.getActionURL works perfectly with all those navigations that specified in Navigation case. Our app is also using a welcome-file-list in web.xml which specify the page to call when the app directory is called. e.g we have value like:
<welcome-file-list>
<welcome-file>/faces/user/firstpage.jspx</welcome-file>
</welcome-file-list>
So question is how to get this page also have the parameter appended?
Thanks so much for any help.

Similar Messages

  • Add URL Parameter to Validator

    Hi, my problem is this. I have a jsp page that uses a url parameter passed to it by the link, i.e <a href="userInfo.jsp?id=nav">. The id value is then used to conditionally populate the jsp drop-downs etc.
    On a validation error the page is redisplayed, but the id parameter is not present and it gnarls the jsp output. Is there a way of giving the redisplayed page the id value that was originally present?
    Thanks for any help.

    I would add a hidden input to the page with the expected name and value. In this case it might be best to use straight HTML instead of the inputHidden component.

  • How can I add a url parameter to choose the right database row to delete using php in Dreamweaver CC

    Hi all,
    I have just upgraded to Adobe Creative Cloup.  Though I find it very good there was one flaw and that was the omision of the database section.  I got this sorted but now I find that once I have set up the connection to the database and want to eithger delete or update records there is no 'url parameter' button to do so.  Can someone advise we how to get round this.
    Seasons Greatings from
    David J

    The link will look similar to
    myPage.php?ID=myVariable

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • Missing URL parameter: IterationId

    Error:  Missing URL parameter: IterationId
    I get this error when I add a footer to my report.  Is there a fix?
    Report viewer 2010
    Visual Studio 2008 sp 1
    .Net 3.5
    Browser = firefox, have not tried ie.
    IIS = whatever ships with Windows 7 prof.
    Thanks,
    Sam

    (Apologies for bumping this old, old thread; it was the first hit in Google when searching for this problem myself, so I thought I'd post how I resolved my issue in case others stumble upon it.)
    Are you sure this is just from adding a footer?  I was getting this error message myself, and it was due to the Line control.  For whatever reason, the Line control tries to include a standard blank image right after it, but the URL is missing
    that parameter in FireFox and Chrome (but not IE, as far as I can tell). When I remove all the Line controls, the error goes away.  Make sure you don't have any Lines in your footer (or anywhere else on your report, for that matter.)

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • URL parameter to a detail page

    Hello,
    I a m having trouble with my url parameter which is not fetching the correct record. The code works -  and returns a word title and description; but it returns only the top record no matter which link is used. Please help.
    1. I have a master page with three url links which are sent to the detail page:
    <p><a href="sprydetail.html?word=integrity">integrity</a></p> 
    <p><a href="sprydetail.html?word=voice">voice</a></p>
    <p><a href="sprydetail.html?word=argument">argument</a></p>
    The sprydetail.html page looks like this:
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/word");
    var ds2 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/description");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:region="ds2">
      <p>{description}</p>
    </div>
    </body>
    My xml file looks like this:
    <tagwords>
    <tagword>
    <word>Integrity</word>
    <description><![CDATA["in·teg·ri·ty [in-teg-ri-tee] Show IPA noun 1. adherence to moral and ethical principles; soundness of moral character; honesty. 2. the state of being whole, entire, or undiminished: to preserve the integrity of the empire. 3. a sound, unimpaired, or perfect condition: the integrity of a ship's hull."]]></description>
    </tagword>
    <tagword>
    <word>Voice</word>
    <description><![CDATA["voyss [voyss] Show IPA noun"]]></description>
    </tagword>
    <tagword>
    <word>Argument</word>
    <description><![CDATA["arg-u-ment[arg-u-ment] Show IPA noun"]]></description>
    </tagword>
    </tagwords>

    1. I have a master page with three url links which are sent to the detail page:
    <p><a href="sprydetail.html?word=integrity">integrity</a></p> 
    <p><a href="sprydetail.html?word=voice">voice</a></p>
    <p><a href="sprydetail.html?word=argument">argument</a></p>
    Please remember that the URL variables are case sensitive, ie if the variable that you are looking for is Integrity then the variable cannot be integrity.
    The sprydetail.html page looks like this:
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/word");
    var ds2 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword/description");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:region="ds2">
      <p>{description}</p>
    </div>
    </body>
    Change the above to
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <div spry:region="ds1">
      <h1>{word}</h1>
    </div>
    <div spry:detailregion="ds1">
      <p>{description}</p>
    </div>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/xpath.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <script>
    var params = Spry.Utils.getLocationParamsAsObject();
    var ds1 = new Spry.Data.XMLDataSet("myxml.xml", "tagwords/tagword[word ='"+params.word+"']");
    </script>
    </body>
    </html>
    First of all I prefer having the JS at the bottom of the document, not absolutely required. Next I have gone for one dataset showing a region and a detailregion. I have also extracted the URL variable placing this into params, the individual value params.word has been used in the xPath definition.
    Gramps

  • Conditional rendering of JSF page depending on Navigation case

    Hi
    Can we conditionally render the JSF page depending the navigation case, which brought us in that page..
    Lets say that a page A does both Edit and create operations , we have two navigation cases "edit" and "create" directing to this page from main page. can we modify the components in the page depending on the navigation case.
    Thanks in advance
    Pradeep

    Hi Grant,
    your reply was helpful. i got into another scenario :-) where i need to know the navigation case which brought us into the page.
    I have a page flow in adf which can be called by client applications both as a popup or a regular window. the ADF's dialog framework more or less solves my requirement. But to return values from dialog, i have to use "returnFromDialog" method on click of button in the popup window. as i am reusing the page i would write a conditional statement to show diff behaviour when launched as a popup.
    my problem is that i do not want client application to set any parameter in the managed bean (this would get client apps into the implementation issues, causing unnecessary complexity). This again brings me back to the same question ability to KNOW (get handle of) the "navigation case".
    Pradeep

  • Pass URL parameter to BEx application

    Hi all.
    We have a BEx query, that is called by Iview. In the URL, we attach the user that logged in the portal. Then when the BEx application is called we need pass this value to the query.
    We tried to solve this principally concatenating this chain to URL query in the Iview:
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=j_user
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE= ZUSPORT
    Where j_user is the user sended back by the portal, and ZUSPORT is the name of the query selection field.
    But now the problem is that we need to use an editable field to retrieve the user value... then we would make the field invisible or disabled but we don't know how to make this.
    If make the caracteristic invisible in query designer it doesn't turn invisible because is a editable field.
    If we use a exit variable the value isn't retrieved.
    Any idea?? Any help will be apreciated. Thanks in advance.

    Andrea,
    If the parameter is always the same value, you can use the URL iview or the Application integrator iview and simply add the parameter to the URL in the iview properties.
    If the parameter is dynamic, you can use the Application integrator. With this iview you can send user profile attributes as url parameters for instance.
    Hope it helps.
    Johan

  • ABAP -WebDynpro - Read URL Parameter

    Hi,
    We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
    1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
    2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
    I would appreciate your help...
    Thanks
    Meenal

    Hi Menal,
    I had the same problem.
    Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
    2nd
    In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
    method handledefault .
    *&- Add FOF and HOOK_URL to assistanceclass attributes
      wd_assist->hook_url = hook_url.
    endmethod.
    After this you can read your HOOK_URL e.g in a view via:
    concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
    I hope your question is answered.
    What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
    John

  • Handling a specific URL parameter in WCEM

    Hi everybody,
    Is it possible to handle a specific URL parameter in WCEM ?
    For example :
    http://site:port/main/wec-startapp.jsf?wec-appid=MYAPP&my-specific-param=MYVALUE
    Our need is to call a Business Rule Management System giving WCEM the list of allowed articles in the catalog. Depending on the specific parameter, the BRMS will give a different list of articles.
    The value of the specific parameter is chosen by the user at connexion :
    - we don't want to add a dropdown list on the connexion screen to choose the parameter value ;
    - we don't want to use a different webshop for each possible value ;
    - that's why we would like to have one webshop and add a specific parameter in the URL
    Do you have an idea ?

    Hi Steffen,
    Sounds like a solution.
    We'll see during the development phase if it fits the needs.
    Thanks

  • How to set a navigation case as the action for a CoreCommandButton

    Hi all,
    I dynamically display a CoreCommandButton on my jspx using code in the backing bean.
    I want to set a navigation case to this button so that I can navigate to a separate page when clicking the button.
    CoreCommanButton has a setAction method which needs a methoBinding. If my navigation case is "goMaintainPr", how do I set this as the action of my button? Can I create a methodBinding for my navigation case? If so how?
    Cheers.
    Kaz.

    I am creating my CoreCommanButton in the backing bean like:
              CoreCommandButton editElemBtn = new CoreCommandButton();
              editElemBtn.setId(elemCd + "-edit");
              editElemBtn.setText("Edit");
    and then add it to the page from the backing bean. So I need to be able to set the action to the above button like:
              editElemBtn.setAction(action); -- here, action needs to be a methodBinding. So i cannot just assign my navigation case as a String.
    How do I create a methodBinding with my navigation case ?

  • How to open URL IView with dynamic url parameter (navigate_absolute)

    Hi Experts,
    i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
    and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
    Thx Markus

    Hi Markus,
    You can take help of the following code snippet.
    Here we are calling an Iview using absolute navigation and passing URL parameters as well
    * Select the input value entered and then pass it to REM INQ application---------
      DATA lv_inputbusobjid   TYPE          wd_this->Element_context-inputbusobjid.
      DATA lv_path            TYPE          string.
      DATA lv_tab_wd_param     TYPE          wdy_key_value_list.
      DATA lv_str_wd_param     TYPE          wdy_key_value.
      DATA lo_el_context      TYPE REF TO   if_wd_context_element.
      DATA api_component      TYPE REF TO   if_wd_component.
      DATA window_manager     TYPE REF TO   if_wd_window_manager.
      DATA window             TYPE REF TO   if_wd_window.
      DATA lo_api_component   TYPE REF TO   if_wd_component.
      DATA lo_portal_manager  TYPE REF TO   if_wd_portal_integration.
    * read the imput data first-------------
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUTBUSOBJID`
        IMPORTING
          value = lv_inputbusobjid ).
    ** call remuneration inquiry window using absolute navigation
      CLEAR lv_tab_wd_param.
    * Adding parameters
      lv_str_wd_param-key = 'sap-wd-configId'.
      lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lv_str_wd_param-key = 'BUSOBJ_ID'.
      lv_str_wd_param-value = lv_inputbusobjid.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      if lo_portal_manager is BOUND.
    * PCD
      lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
      lo_portal_manager->navigate_absolute(
        navigation_target   = lv_path
        navigation_mode     = if_wd_portal_integration=>co_show_external
        window_features     = 'toolbar=no,resizable=yes,scrollbars=yes'
        business_parameters = lv_tab_wd_param
      endif.
    Hope this helps
    Regards
    Manas Dua

  • Passing date criteria in url parameter

    Hi,
    I want to filter a recordset by a given date.
    Create the recordset, if I use a runtime value of #27/11/06#
    all the records for that date are returned.
    However, when I try to pass the same information through an
    URL Parameter it doesn't work.
    Is there a problem with passing this info in that way?
    Thanks, Mark.

    No, should be absoloutely fine. The prob is most likely to do
    with your SQL
    statement.
    As a test, don't display any records. At the top of your
    page, try
    outputting the completed SQL statement onto the page to see
    what it looks
    like. The problem being you may need to add the # symbols
    manually. Should
    look something like
    "SELECT * FROM TableName WHERE DateField = #" &
    URLParameter & "#"
    HTH,
    Piers

Maybe you are looking for

  • I am so disappointed in iWork,  it is not as it was represented!!!!

    I have used Microsoft Work for years. I have a new iMac and wanted to use all Apple software - bad move!! iWork is not great. I am glad I kept Microsoft Work on the computer. I cannot even make a simple sheet of return address labels! What a disappoi

  • Canon 5D Mark III Raw Files Not Viewable in Finder for Snow Leopard 10.6.8

    System specs: Computer: Mid 2008 Mac Pro - Dual Quad Core OS: OS X 10.6.8 (includes the most recent Digital Camera Raw Updates) Camera: Canon 5D Mark III Problem: Finder can not preview the thumbnails from this camera.  While not that big of a deal (

  • Application putty cannot be launched on this device.

    Hi I'm using Microsoft Forefront Unified Access Gateway to access a VPN I get the following when invoking a link once on the site: SSL Application Tunneling Application putty cannot be launched on this device. I have PuTTY but suspect it's not as sim

  • Calendar does not display details

    My google mail and calendar synch well but I cannot see the details of my calendar. It displays busy when I have an event.  What can I change to see the details? Thanks!

  • New 'Modern' Skype in Windows 8 Terrible!

    I hope Microsoft/Skype are listening. I don't know about all you other forum users, but am I the only person who thinks the new so-called 'modern' Skype in Windows 8 is terrible? The useability is so unintuative and frustrating. It seems that one can