ExecuteWithParams and URL parameter

I am implementing a two pages scenario where the first page allows the user to select the Department ID from a menu, which gets passed to the second page via URL. The second page allows the user to refine the search on the employees within the selected department.
I have created a View Object for the Employees table with bind parameter for the Department ID, and Following the guidance of an earlier post:
ExecuteWithParams with URL parameter doesn't work
managed to get the passed in Department ID URL to be used in the intial search.
The problem is that this value is not retained on subsequent searches. Can someone help me on this?
Please excuse if the question is trivial. I am new to JDeveloper. By the way, I am using ADF BC with JDeveloper 10.1.3

Assuming that you are using JSF then instead of passing the parameter in the URL try passing it with the processScope scope.
See: here

Similar Messages

  • WDDOINIT and URL Parameter

    Hi Folks
    How can I access the URL parameter in WDDO INIT method of the window. I am trying to use ALL_URL_PARAMETER but its giving me error.
    I am using the following code:
    data: lo_component type ref to if_wd_component.
            lo_application type ref to if_wd_application.
    lo_component = wd_comp_controller->wd_get_api( ).
    lo_application = lo_component->get_application( ).
    lo_application=>ALL_URL_PARAMETERS.
    Regards
    Waz

    Hi Waz,
    You would need to call this from within the inbound plug of your window. Something like:
    wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'
                                 IMPORTING value  = lt_all_url_param ).
    WDEVENT is a default parameter for the DEFAULT inbound plug.
    Try go through this [thread |Read URL Parameters programmatically;for more details regarding the same. You can't directly use ALL_URL_PARAMETER in your WDDOINIT as you dont have the WDEVENT being passed to it.
    Regards,
    Uday

  • ExecuteWithParams with URL parameter doesn't work

    Hi!
    There are a lot of posts about executing VO with parameters, but I'm still stuck on it. I have a VO with WHERE condition like this:
    WHERE TABLE.ID = :IdParm
    I want this binded variable to get populated in jspx page by parameter in URL. I've created a binding for ExecuteWithParams in my pageDef like this:
    <action IterBinding="MyViewGIterator" id="ExecuteWithParams"
    InstanceName="AppModuleDataControl.MyViewG"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="IdParm" NDValue="${param.IdParm}"
    NDType="java.lang.String"/>
    </action>
    and an executable on this:
    <invokeAction Binds="ExecuteWithParams" id="callExecuteWithParams"
    Refresh="ifNeeded"/>
    so the executables in my pageDef look like this:
    <executables>
    <iterator id="MyViewGIterator" RangeSize="10"
    Binds="MyViewG" DataControl="AppModuleDataControl"/>
    <variableIterator id="variables">
    <variable Name="parameterURL" Type="String"
    DefaultValue="${param.IdParm}"/>
    </variableIterator>
    <invokeAction Binds="ExecuteWithParams" id="callExecuteWithParams"
    Refresh="ifNeeded"/>
    </executables>
    I have a variableIterator that is binded on outputText control on my jspx just to test if parameter gets read correctly and it does.
    What am I doing wrong that query doesn't execute correctly and I don't have any data on my page? I've also tried with refresh condition "Always" but it doesn't help.
    Any help would be much appreciated.
    BB
    Message was edited by:
    Brokenbone

    Hi,
    do the following:
    - In the pageDef file (Executable section), create a "Parameter". The name of this parameter is up to you.
    - the value of this parameter point to #{param.IdParm}
    - In the ExecuteWithParam OperationBinding, select the agument item and select the NDVaue. Open the ExpressionLanguage editor and select the Parameter you just created
    Here's a working pageDef file example:
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="10.1.3.41.57" id="RequestParamTestPageDef"
                    Package="adf.testcases.view.pageDefs">
      <parameters>
        <parameter id="param1" value="#{param.param1}"/>
      </parameters>
      <executables>
        <iterator id="DepartmentsVOWithBindVar1Iterator" RangeSize="10"
                  Binds="DepartmentsVOWithBindVar1"
                  DataControl="AppModuleDataControl"/>
        <invokeAction id="executeDepartments" Binds="ExecuteWithParams"/>
      </executables>
      <bindings>
        <table id="DepartmentsVOWithBindVar1"
               IterBinding="DepartmentsVOWithBindVar1Iterator">
          <AttrNames>
            <Item Value="DepartmentId"/>
            <Item Value="DepartmentName"/>
            <Item Value="ManagerId"/>
            <Item Value="LocationId"/>
          </AttrNames>
        </table>
        <action IterBinding="DepartmentsVOWithBindVar1Iterator"
                id="ExecuteWithParams"
                InstanceName="AppModuleDataControl.DepartmentsVOWithBindVar1"
                DataControl="AppModuleDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="deptId" NDValue="${bindings.param1}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
      </bindings>
    </pageDefinition>Frank

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • 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

  • Mp3 and url problem

    Hi everyone!
    I have searched here on this forum, but I haven´t found
    a solutions for my two problems or
    I haven˝t searched properly.
    My first problem is with mp3 files. I have created a mysql
    database for my mp3 files
    like this: id (int), date (date), content (varchar), file
    (varchar) and now my problem is
    how to set up the page so the file loads on the page and the
    user
    can be listend to it.
    My second problem is with url. I have created a image gallery
    for my banners on the site.
    My SQL table is setup like this: id (int), client (varchar),
    banner (varchar), link (varchar), startingdate (date) and
    endingdate (date). I would like to setup is like this: if an
    user clicks on the banner it will take him to the
    clients site.
    I thank everyone in advance for any tips I can get to solve
    my two problems.

    quote:
    Originally posted by:
    DWFAQ.info
    Heya,
    You wrote:
    "How should it look like in the Recordset window.
    Filter : _________(I wrote ID) = (or should I choose
    something else)
    Url Parameter - _________________(I wrote File)"
    It should look like this:
    Filter:__________ id
    (id lowercase is the primary key auto increment integer for
    your item you create a DB table field for as described in your
    original post.)
    =
    URL Parameter:_________ id (or whatever name you want)
    Then place dynamic info into page by dragging table field
    from Binding Window onto page as described in earlier post. Then
    when you visit your_page.php?id=3 you will see table info placed
    from binding tab where id = 3. 4 for 4, 5 for 5, etc. If you put
    something else like File in URL parameter filter then visiting
    your_page.php?File=3 will show info from table placed in page from
    binding tab where primary key id = 3 etc.
    That should be more than enough information to get you on
    your way!
    Thank you DWFAQ.info for the HELP! it´s working
    now.

  • 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

  • How to pass mysql query id through url parameter to a detail page

    Hi there,
    I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.

    <Acknowledged>
    which should be strongly cautioned against even for "newbies".
    </Acknowledged>
    Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
    Even with pretty capible code brakers trying to cause $h!t with my application.
    Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
    But yes PStat... are the better way.

  • 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

  • How to get value of URL parameter

    Hi,
    If an ABAP Web Dynpro URL looks like this: http://<server>:<port>/sap/bc/webdynpro/sap/zny_test1?sap-client=100&sap-language=EN, how to get value of the URL parameter “sap-client” at runtime in the application?
    Thanks,
    Nancy

    The framework currently strips all the framework specific params.
    Perhaps the will be made available in a future release.  Thomas, any comments ?
    However, I dont understand the requriement to know the sap-client URL value.
    If your code is running, a user has successfully connected to system a therefore he has a session open and this session is associated with exactly 1 client at any point in time.
    See SYSTEM VARAIBLE   SY-MANDT.
    this represents the client in which the users session is running and negates the need to see
    sap-client URL value.
    regards
    Phil.

  • Webdynpro appln Url parameter "sap-wd-client= XML client "

    Hi all,
        I am a beginner in Webdynpro application development.
    I have a query on the usuage of Url parameter "sap-wd-client=XmlClient" in webdynpro application.
          When i set the Application parameter property of webdynpro iview in portal as "sap-wd-client=XmlClient", i am getting the content of webdynpro appln in XML format. What is the use of this XML format.
    Can we use this webdynpro appln in XML format in any other portal say Weblogic portal and produce an UI in that portal.
    Let me know the use of this XML format.
    Pls give me some exposure on this.
    Thanks & Regards,
    Siva

    Hi sivakumar,
    It is used for supplying data to another kind of client. You can download a trial version of it somewhere on SDN.
    Best regards,
    Thomas

  • 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

  • URL parameter value with : not displayed correctly on page

    Hi,
    I am working on a page with an interactive report.One of the report columns is hyperlinked to another page (Delete Page).This link passes an id and a title to the Delete page such that its displays a confirmation message to the end user before actually performing the delete.If the title contains a ":" the text after the ":" is not displayed on the page (albeit visible in the URL on the top)
    Is this because the ":" seperates parameters in an APEX URL and therefore the text after the ":" is taken as the next URL parameter?
    How can we solve this problem?
    Regards,
    Priya Jetley

    Hi
    Yes - Apex will see the ":" as a parameter separator and will ignore everything after any that exist in the "with these values" parameter at the end of the url.
    You can get around this in two ways:
    1 - Escape your title - replace ":" with "%3A" in your sql statement
    2 - Do not pass the title in the link but use a computation on the delete page to retrieve this value for display
    Andy

Maybe you are looking for

  • Err while replacing schema  during mapping in Transformaion

    I am experiencing a problem with mapping in transformation. the case is ...i have develop a BPEL Sync Process and using Database adapter to call a strored procedure. When i am using the transformation and trying to replace the schema from the default

  • File System Repository limitations

    Hi everyone I'm currently involved in a SAP Enterprise Portal project where we among other things are utilizing KM. One of my customer's requirements are that we integrate an existing fileshare into KM. This fileshare is currently at ~200 GB and is s

  • File Asynchronous

    HI Experts, I am doing a demo for my client file to file using Asynchronous. The sender file will be transfer to receive folder. In my RWB, there is message: application to send an XI message synchronously using connection file.... But my process is

  • (SOLVED) tango-icon-theme-extra needed ?

    Hi, there tango-icon-theme exists. I installed it on Lxde and it works fine.   However there exists tango-icon-theme-extra. Who can tell me what does this pkg do ? Last edited by ShinChyn (2009-03-26 01:49:14)

  • Oracle Cluster not moved to failover

    Hi, I have two AIX servers and a sanbox. My database is on Sanbox. When my primary server went down my failover server automatically came up. but database dosent satarted. I pasted below the error log. Can you people suggest me what will be the reaso