How to access url parameters in query builder side

I call a report via url and it works fine but now i want to use lexical parametrs.
I create a lexical parameter in the report but how can i establish relation between url parametrs and lexical parametrs from report?
Example
URL: report1.rtf?PUser=1&PCity=2
REPORT: P_WHERE lexical parameter
How can i define that something like P_WHERE -> "where user=PUser and city=PCity"
Please give me a hand, its urgent
Thanks

Hi,
do this in the after paramform trigger:
:p_where := 'where user='||PUser||' and city='||PCity;
Regards
Rainer

Similar Messages

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • How to read URL Parameters

    Hi All,
      How to read URL parameters in another WDA.
    Thanks in advance

    here is the sample code.
    you can write this code in HANDLEDEFAULT method of Default Window of Application being called.
      DATA:
        wa_url TYPE LINE OF tihttpnvp,
        int_url TYPE tihttpnvp.
      wdevent->get_data(
        EXPORTING
          name = if_wd_application=>all_url_parameters
        IMPORTING
          value = int_url ).

  • Can I access URL parameters?

    Is it possible to access URL parameters from a WebStart application?
    Example:
    http://www.domain.com/example.jnlp?parameter1=43
    I would like to initialize my JWS app using the information given to me in parameter1.
    Is this possible? I believe that this would be very powerful.
    Thanks.

    If your www.domain.com/example.jnlp is a CGI script or servlet that returns a .jnlp file with
      <application-desc>
        <argument>43</argument>
    </application-desc>and you retrieve that parameter from args[1], it might work.
    Regards,
    Marc

  • How to access the Oracle from Unix when SID is not provided?

    How to access the Oracle from Unix when SID is not provided.
    User Name : xxx
    Password : yyy
    SID : SID
    I use to access it using below command from Unix prompt:
    sqlplus xxx/yyy@SIDNow since I dont have SID, how to access the Oracle DB from Unix Box?
    User Name : xxx
    Password : yyy
    Service Name : zzz
    Regards,
    Sunny.

    Hi Ajay
    Thanks for the suggesstion :)..It worked as well.
    The Actual problem was in the "tnsnames.ora" file where in I need to make entry for the new SERVICE name.
    Now I am able to connect it properly.
    Regards,
    Sunny.

  • How to access GET-parameters in portal url

    Is it possible to access GET-parameters in a bsp application in an iview in the enterprise portal, and if so, how do I do it?
    If you look at the url of this post (/message/1514719#1514719 [original link is broken])
    I would like to have the value of "forumID" in the bsp application in the iview with shortlink "thread".

    Raja,
    your solution is what I was initially looking for, so thank you.
    Can you also supply a link to the article you refer to?  I can't find it:-)
    But while looking for this I found something even better, a way to pass parameters to an iview without having to define them in the iview ApplicationParameter-property.
    Apparently the trick is to add the parameter "DynamicParameter" to the url, that translates to different parameters in your bsp application(iview).
    So if you want your bsp application to have the parameters "roomid=555&date=01.01.2007" your url should be
    http://bla/irj/portal/rooms?DynamicParameter=roomid%3D555%26date%3d01.01.2007
    where %3D is the ascii representation of "=" and %26 is the ascii representation of &.
    I found this here : /message/529588#529588 [original link is broken] , but in this thread they say to separate the parameters by a ";", whereas for me it only works when i use %26 (&).
    Message was edited by: Dries Horions

  • How to persist URL parameters in OAM portal inserts?

    Hi,
    We have a requirement to redirect the users to different XSLs based on the containers configured in OID (ou=employees,ou=customers). We have configured different style directories (employees and customers) in OAM. For Identity Administration activities we are using another style (adminStyle) used by OAM Identity Administrators.
    We are using OAM portal inserts for navigating from webapplication (integrated with OAM) to OAM modify profile page to change user attributes.
    Also webapplication using different authenitcation scheme in OAM.
    User login into webapplication using login.jsp (form based authentication scheme) and clicks on Modify profile link (URL will be portal insert URL).
    After the user session timeout (Configured in webgate) user is redirected to OAM login page (form based authentication). Once the user enters valid credentials user is redirected to OAM user manager application (only navigation bar with back button is displayed).
    The parameters comp=true, style=employees and program=modify are lost. Hence user not able to see OAM Modify profile page. Again user needs to click on back button (portalid) to get into Modify profile page. How to persist these parameters in the URL?
    Following is the portal insert URL we are using:
    http://<host>:<port>/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=modify&uid=UserDN&style=employees&xsl=usc_profile.xsl&comp=true &portalid=webapphome
    Anypointers on this is appreciated.
    Thanks in advance.
    Regards,
    Srikanth
    Edited by: Srikanth_idam on 16-Apr-2010 04:30

    Hi Srikanth,
    That looks like a bug (6158232) that was fixed in version 10.1.4.2 of OAM Access Server (maybe WebGate too). Are you on an earlier version?
    Regards,
    Colin

  • How to Access User Parameters in Web Reports

    Hi Friends,
    I am working on Oracle Reports 9i. I am able to access user parameters in Paper Layout by using :user_param1 or &User_param1. But when i am using the same to access user parameters in web source i am not able to access these.
    Actually inside a report i want to create a hyperlink for executing an another report. In this hyperlink i need to pass some user parameters too. But when i am using web source i am unable to access user parameters. Can Somebosy help me on that.
    Thanka in advance
    Regards
    Kamal
    [email protected]

    Hi Kamal,
    For you requirement, the following chapter in the 'Building Reports manual' should help you. Go through the chapter-" Building a Simple Parameter Form for a JSP-based Web Report'. This will help you on how to create a parameterform and to run the report based on the parameter value.
    You can download this manual from the location http://download.oracle.com/docs/html/B10602_01/toc.htm.
    Thanks,
    Vidya

  • How to read URL Parameters in ABAP WebDynpro ?

    Hi,
    How and where (which class, method) in ABAP WebDynpro we can read URL Parameters ? I found answers for WebDynpro JAVA but nothing for ABAP.
    Thanks
    Meenal

    Hi Meenal,
    Please see a post by Sanjay Agarwal titled 'Sequencing Problem in Web Dynpro ABAP'. I believe you will find your answer there.
    Cheers,
    Rich

  • How to pull URL parameters into my Captivate 6 flash

    I want to be able to parse a parameter being passed in the URL to my Captivate video and then use it after the file is over.   e.g. a username that is picked up by another web page.  Is there an easy way to do this.
    Looking through old posts, is see using the m_MovieHandle as the area to place my flash code, but everything so far I've tried doesn't bring in the variable.   I'm kinda new to flash.
    Thanks

    Put this JavaScript code in a separate .js file.  I called mine utilities.js:
         /* Utility to get a URL Parameters as queryString object */
         var queryString = (function(a) {
              if (a == "") return {};
              var b = {};
              for (var i = 0; i < a.length; ++i)
                   var p=a[i].split('=');
                   if (p.length != 2) continue;
                   b[p[0]] = decodeURIComponent(p[1].replace(/\ /g, " "));
              return b;
         })(window.location.search.substr(1).split('&'));
         /* Utility function to Set a Captivate Variable with a URL Parameter */
          var setCpVariableWithURLParameter = function(cpUserVariableName, urlParameterName){
              /* Get the requested URL Parameter from the URLParams Object */
              var variableValue = queryString[urlParameterName];
              /* Check for HTML5 vs. SWF output */
              if (typeof window.cp==='undefined') {
                   /* We have SWF output, so Get the Captivate Object */
                   var objCp=document.getElementById('Captivate');
                   if(objCp && objCp.cpEISetValue){
                        /* Set the Captivate User variable with the JavaScript variabe, variableValue */
                        objCp.cpEISetValue('m_VarHandle.' + cpUserVariableName, variableValue);
              } else {
                   /* We have HTML5 output */
                   if(cp.vm && cp.vm.setVariableValue){
                      cp.vm.setVariableValue(cpUserVariableName, variableValue);
    Include this .js file in the header of the <ProjectName>.htm file of the swf published output by using a script tag:
    <script src="utilities.js" type="text/javascript"></script>
    Where utilities.js is at the root of the published project (where the published .swf file lives).
    Also add this script tag to the header of the HTML5 output index.html file. 
    To use the setCpVariableWithURLParameter() function, you would make this call inside of a JavaScript action in Captivate:
    setCpVariableWithURLParameter('v_Name', 'userName');
    Where 'v_Name' is the Captivate user Variable you want to set and 'userName' is the name of the URL parameter.
    Give that a try and let us know how it goes.
    Best,
    Jim Leichliter

  • How to config URL parameters dynamiclly in URL iView?

    Hi all,
    I have 2 iViews, iView1 is a WD application iView, iView2 is a URL iView with some URL parameters.
    Firstly I navigate from IView1 to iView2 with some parameters, then I hope to pass these parameters to the URL parameters configued in iView2.
    For example,
    <b>iView2 configuration:</b>
    URL: http://server1/app
    URL parameter name: param
    <b>Navigate from IView1 to iView2:</b>
    WDPortalNavigation.navigateAbsolute("ROLES:"+iview, WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,(String)null,(String) null, "value=123");
    Then how can I pass the value 123 from iView1 to the parameter 'param' in iView2?
    Best regards,
    Bean

    Hi Bean ,
    The approach you are following is correct ,refer to these links , there you can find the concept of WDportalnavigation properly,Also check for the relative navigation.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    Thanx
    Pankaj

  • How to read url parameters from a decoded string

    Hi,
    Normally if I pass on a url string
    test.cfm?name=abc&num=8, I can do url.name and url.num
    to get the url parameters. But what if the url string is decoded by
    javascript escape() function? The above url string becomes
    test.cfm%3Fname%3Dabc%26num%3D8
    How can I read url.name and url.num from this string?
    Thanks!
    Min

    Escape is not really meant for urls because it encodes the
    delimiters: ? &
    http://www.w3schools.com/jsref/jsref_encodeURI.asp
    http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp

  • How to diasable Data Edit in Query Builder?

    Is there a way to disable Data Edit in Query Builder in Dev6? When QB was part of Discoverer as Browser it was possible via BROWSER_PROFILE. The QB now ignores this neither it have any table instead. There is note in help that the feature is disabled by default and admin should have to enable it, but, seems, it is occasionally left from previous releases.
    TIA,
    Uldis

    Hi,
    What did you mean the “string”? What did you want to do to use the string parameter?
    Did you mean managed properties?
    If you mean the managed properties, you can just select the managed properties in the query builder, the query builder would automatically generate the path.
    There are some articles about the query builder for your reference.
    http://en.share-gate.com/blog/sharepoint-2013-content-search-site-portal
    http://blogs.technet.com/b/mspfe/archive/2013/02/01/how-query-rules-and-result-sources-can-be-used-to-customize-search-results.aspx
    What’s more, there are some restrictions for KQL, you can also have a look at it.
    http://msdn.microsoft.com/library/ee558911(v=office.15)
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to change the font in query builder window in Reports 6i?

    Hi
    I am facing the old problem again and again, which is I can not find any way to change the font in query builder window in Reports 6i. The current font is so bad for alignment and ordering each part of SELECT statement. Is there any way to change this to COURIER NEW for example?

    No, but I suggest using a different editor which does allow a different text option and just pasting it in.

  • How to encode URL parameters in pl/sql?

    How to encode url and its paramters in PL/SQL to call a page using html GET method? Is there any equiavlent method of java's URLEncoder.encode() method in pl/sql (in any web packages) ?
    Any help/pointers highly appreciated.
    P.S. : URGENT PLEASE!!!

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:371959198986

Maybe you are looking for

  • How to load XML file to DB

    Hi All, My requirement is I have a XML file, its data should be stored in Database. Below is the sample XML file. <?xml version="1.0"?> <PaymentInfoMessageResponse> <PaymentInfoResponse> <TransactionType>940</TransactionType> <SequenceNum>04</Sequenc

  • Boot Camp or Parrarels to Run Microsoft SQL Server in MBP

    Hi i have this question for you all mac expert here. I'm a switcher , My MBP is my first apple product that i buy (except of few ipods of course :P ) , Anyway i really glad that i made the switch, everything is simple and easy to learn especially wit

  • I dont have my computer back up, I have mountain lion. disc utility says corupt. built in recovery disc is good.

    I have had it partially back up and separate drives. What is the safest way to avoid losing any information.  I discovered the problem after turning it on and only a flashing folder apapeared with a plus sign.

  • Music controls semi-unresponsive

    hey all, i have seen at least one thread on here about the dock icons being unresponsive but i found a new 'bug' yesterday. When the ipod is in landscape mode (say when you are on the internet) and i double tap the home button to pull up the music co

  • Printing Grids in Smartforms

    hi friends.. i have to print a grid in main area of table ..20 rows in grid should be displayed even if data consists of 3 rows... plz help ..regards...