Passing URL parameters to WD app in URL IView

Hi experts,
I'm using EP 7.2 and as I found out this version doesn't support Web Dynpro Java iview template so I'm using URL iview template for my Web Dynpro Java application. My requirement is to somehow pass some URL parameter (which is id for something in my app) to the WD app in the URL iview. So in this scenario setting the URL parameters and their values during design time for the iview is not suitable. I tried DynamicParameter=id%3D154 for example but it doesn't work. Do someone has any ideas to solve this problem? Any help will be appreciated.
Regards,
Martin
Edited by: musaka on Oct 27, 2009 1:12 PM

Hi Musaka,
If i am not mistaken, your requirement is to display a URL iView to user with some parameters (contained within the Address Bar of the Browser) to be passed to the iView. Initially as no parameter value can be defined on previewing the iView or opening the iView, no value is passed to iView. But in case, when you directly enter the Parameter Values against Parameter Names in Address Bar and then say go, the page should reload and pick the parameter values from URL in Address Bar instead.
Steps to follow:
1. Put     CustomerId=0&RequestId=0            in the Application Parameter property of the URL iView.
2. Put the following lines of code in the wdDoInit() in the implementation tab of the View Controller to retrieve and use the passed parameter value in the View of the application and then say Organize Imports from the context menu.
int customerId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("CustomerId");
int requestId = WDProtocolAdapter().getProtocolAdapter().getRequestObject().getParameter("RequestId");
Please revert in case of any issue.
Regards,
Tushar Sinha,
Infosys Technologies Limited,
Hyderabad,
India
Edited by: tushar sinha on Oct 29, 2009 10:51 PM

Similar Messages

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • How pass url parameters on init webdynpro app.?

    Hi all,
    i want to pass a parameter to my wd app. when its start. How can i do it? where do i have to do it?
    Thanx in advance
    CP

    You can define parameter using two methods:
    1. Via properties of the iview you have created, system will pass these parameters automatically to the iview.
    2. Via Code, you can use Portal Navigation and pass parameters at runtime. Check following sample code:
              WDPortalNavigation.navigateAbsolute(
                        "ROLES://portal_content/myIview/LoadEmployees",
                                    WDPortalNavigationMode.SHOW_INPLACE,
                                    (String) null,
                                    (String) null,
                                    WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                                    (String) null,
                                    (String) null,
                                    "action=E");
    The last parameter is for passing parameters, in the example parameter name: action and its value: E.
    Regards,
    Jawed Ali

  • Passing URL parameters to WD application

    Hi!
    To pass URL parameters to WD application I currenly inbound plug 'defauld' (of type 'Startup') of main window. I use following code:
    types:
        begin of param_t,
          name type string,
          value type string,
        end of param_t.
      data: params type standard table of param_t.
      data: param like line of params.
      wdevent->get_data(
        exporting
          name = '_ALL_URL_PARAMETERS'
        importing
          value = params
    It works fine but this plug is called after init methods of the component controller an of the view. So if I want to do something with parameters, I must do in this plug.
    Is there way to pass URL parameters in a WD app. so that they were available from the very beginning of the application work i.e. in init method of the component controller etc.?
    Thanks!

    I had the same requirement too. There are a couple of threads on the subject as well, I've posted in one of them but had no answer:
    Re: Read URL Parameters programmatically
    The workaround i've used is this, it's definitely not as neat as I would like to since you end up having two initialization methods per controller, WDDOINIT and the one you create (for each controller you want to run code in using the received parameters). Nevertheless, it works:
    1) Create an event in your component controller, for example INIT_COMPLETED.
    2) Define a new method in your component controller, e.g. INIT_AFTER_WINDOW. This method receives an Importing parameter TYPE tihttpnvp. It uses this received HTTP parameters for the initialization logic and finally raises the INIT_COMPLETED event (This is the method that "replaces" WDDOINIT).
    3) In the Window's Inbound plug handler, you get the HTTP parameters (with wdevent->get_data) and afterwards call the method WD_COMP_CONTROLLER->INIT_AFTER_WINDOW (maybe you need to declare the usage previously in the Window to have the reference available).
    4) Finally, if you need some of the Views to be initialized afterwards the component controller's INIT_AFTER_WINDOW runs (for example to show some initialization messages), you'll have to replace the WDDOINIT method with an INIT_AFTER_COMPCTRL method and subscribe it to the component controller's INIT_COMPLETED event.
    I hope you got the idea, and more importantly, that we get some cleaner solution from SAP for achieving this in the future.
    Regards
    Edited by: Alejandro Bindi on Nov 6, 2008 10:08 PM
    INIT_AFTER_WINDOW is the method to be called on step 3

  • Passing URL parameters to PL/SQL Pages

    Hi,
    I want to pass parameters from url to the PL/SQL page . How is this possible?
    http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
    I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
    Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
    Many Thanks
    Ganesh

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • HTTP reciever adapter pass URL parameters

    Hello all,
    I have a question regarding passing parameters as querystring in the url of reiever HTTP adapter. This is an RFC> XI> HTTP scenario and we're posting to an external URL. Here are the details
    URL: xxxx.yyyyy.com
    Service Number: 80
    Path: /api/company_codes
    It works fine with these. I want to pass a parameter called "bulk" with value "1".
    How should I do it. Should I append it to the Path directly like
    Path: /api/company_codes?bulk=1
    or enable Apply URL Parameters under Adapter Specific MJessage Attributes and fill in
    Parameter 1 : bulk=1
    Could somebody clarify this please?
    Thanks
    Karthik

    Can anybody help wwith this please?
    Thanks
    Karthik

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • Trouble Passing URL Parameters between Applications

    Hi All,
    I am having trouble Passing URL Parameters between Applications for BW queries as data sources. I know I am getting the data from the sending application correctly, because I an printing to the screen using a Text Component.
    Date From: 1/1/2008
    Date To: 3/14/2014
    Here is the code from the sending application On Select :
    "http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    + DS_1.getVariableValueExt("ZPORDAT3") +
    + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilter("0CALDAY",[Xv_DateFrom, Xv_DateTo]);
    When I click the results of the sending Application the popup window opens for the receiving application but I get all the records for the BW receiving query, it does not restrict to the values in ("ZPORDAT3") 1/1/2008 and ("ZPORDAT5") Date To: 3/14/2014.
    So, I would expect it is my receiving code, but I am not sure.
    Hope you can help?
    Norman

    Hi Norman,
    As Jörg said, please put "&" before each of your variable names at your url. For the second part,I didn't try it for date intervals but keep in mind just in case:
    APPLICATION.openNewWindow("http://localhost:56572/aad/web.do?APPLICATION=WIMO_SUMMARY_OPEN_DETAIL&designersessionid=37a1cfaa7e734cd9afa35cb4cd627d41" +
    "&Xv_DateFrom=" + DS_1.getVariableValueExt("ZPORDAT3") +
    "&Xv_DateTo=" + DS_1.getVariableValueExt("ZPORDAT5"));
    Here is the code from the recieving application Global Script Variable"
    Xv_DateFrom     String     True
    Xv_DateTo         String     True
    Here is the code from the receiving application On Startup"
    DS_2.setFilterExt("0CALDAY", {"low": Xv_DateFrom , "high " : Xv_DateTo});
    Best regards,
    Onur

  • Passing Values to URL Parameters in HTTP Connection SCOT

    Hi ,
    I have created a new node in SCOT as HTTP. In that i am using one URL as HTTP Connection , for that URL have to pass some input values ( eg: User name , password ). Right now i am hardcoding these values in the URL, But i need to pass these input values to the URL dynamically. Is there any way to pass the values to the URL parameters .
    Regards
    Bala..

    Hi Bala,
    Did you ever get this resolved? I have a similar requirement but still cant find a way to do it. I even thought about creating an RFC Destination of type H and entering the user name and pwd in the logon details. But the problem wih this is that the URL for the RFC destination is static and cant really be changed.
    Be interested to hear your thoughts.
    Alon

  • How to pass two parameters in one url?

    the tutorial teaches me to use
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}
    to pass one parameter.
    How can i pass two parameters in one url?
    /faces/Details.jsp?personId=#{currentRow.value['PERSON.PERSONID']}&personName=#{currentRow.value['PERSON.PERSONNAME']}
    is not right.

    The '&' character needs to be escaped, lest it be interpreted by the application server as a separator character in the HTTP query string. Instead of '&', try '%26'.
    // Gregory

  • Does CF really auto-decode URL parameters passed to a page?

    CF docs and livedocs state that:
    quote:
    ColdFusion automatically decodes URL parameters that are
    passed to a page
    (for example, see the URLEncodedFormat tag description, last
    sentence of opening paragraph)
    However, if you have a url-encoded url parameters, as in
    ?var1=1%26var2=2 (%26 is url-encoded equivalent of &), and in
    your page you try to validate url parameters with <cfparam
    type="integer" name="url.var1"> or with isvalid("integer",
    url.var1) function, the validation will fail! Apparently, inside at
    least this tag and function Cf does not automatically decode url
    parameters... it sees the var1 declaration, but sees its value to
    be not 1, but 1&var2=2, which surely fails validation against
    type "integer"....
    This behaviour has been brought up in these forums several
    times now, but nobody has been able to explain how this relates to
    the CF docs statement... Any ideas, anyone? Is this an expected
    behaviour? Are the docs wrong? Does 'parameter', as in "url
    parameters", refer only to specific parts of query string and does
    not include url var name/value pairs separator? Apparently the same
    happens if you have "=" sign url-encoded, too...

    I will have to think on this, do some reading and try some
    experiments.
    But my first thought is that this is expected behavior. I
    would
    propose the purpose of URL encoding the ampersand(&) is
    so that it will
    be considered a part of a value, not its usual role of
    name-value pair
    separator. So in my mind this is the way it is supposed to
    work.
    val1=1&val2=2 : val1 is 1 and val2 is 2
    val1=1%26var2=2 : val1 is '1&var2' or '1&var2=2'
    I will have to explore this further.

  • How To Pass Multiple Parameters In URL

    Hi All,
    I have a requirement to pass two paramaters to the URL which is expected to open a report with filtered data.
    The context is, I have two reports 1. mainreport 2. subreport.
    The mainreport provides a link ( which is TestcaseId ) which on clicking opens the subreport.
    In my case the TestcaseId can have duplicates.So i wanted to pass the TestPlan name which helps me filter the data specific to the testcase which is clicked.
    Expectation: I want the TestcaseId link to pick up the TestPlan name too when clicked and present the filtered data in sub report.
    Note: The TestcaseId and TestPlan name are dynamic and should be picked from the main report.
    I already have the report configured to pick the TestcaseId and now would like to know how do i pass TestPlan name as well to the URL.
    Please help me with this.
    Thanks,
    Shekar

    Hi Bipuser,
    Thank you for your points.
    I have URL with both the parameters defined in it.
    Let me explain my requirement in detail.
    My main report displays the contents in a table like the example below
    Test Case Id     Test Plan
    TC_1.1     ACR758TripReport
    TC_1.2     ACR758TripReport
    TC_1.3     ACR758TripReport
    TC_1.1     ACR539
    The test case ids are displayed as links and on clicking will open the subreport with detailed steps.
    Considering the example above. When i click TC_1.1 which is appearing twice in the table, The subreport should fetch only steps specific to the test plan in the same row and not all.
    So,To filter the data, I wanted to pass the test plan name to the URL.
    Can you list out the steps in detail to achieve this.
    Note: User clicks only on Testcase id link but the URL should pick testcaseid and testplan name to fetch the data.
    Regards,
    Shekar
    Edited by: user12210094 on Apr 26, 2012 2:24 AM

  • Is it possible to pass parameters as query string to url iview of of sap tr

    I have created sap transaction iview . and created url iview for this sap transaction iview. Now i want to pass the parameters to this url iview as query string? and this parameter values should populate in the sap transaction screen . Have any body worked on this?
    pl. help.
    thanks

    URL iview I think is not the right way to do this.
    For this we have several templates calles application integrator.
    BR, Oliver

  • Problems with passing parameters for WEB template in URL in NW2004s

    Servus,
    We have NW2004s, BI 7.0, SP9
    does anybody know where do I make a mistake? There are 9 variables which the user has to fill out.
    Passing the parameters in URL string for a web template like: http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TEMPLATENAME&var_name_1=ZvarX&var_value_ext_1=2000 ....
    but this doesn't function, I get only the first variable screen and not what's set in my URL.
    Is it a bug? Any suggestions?
    Thank you very much
    Standa

    I solved it.
    Solution:
    URL Link "http://......./TEMPLATE=nameofthepage&TEMPLATE=nameofthepage
    &VARIABLE_VARIANT=nameofthevariant"

  • Pass URL parameters to parent window, which is not in VC

    Hi,
    I developed a web application which is calling a VC iView in a new browser window, now I have the problem that I have to pass back URL parameters to the parent window. Is there any possibility to use JavaScript or is there some other solution?
    Thanks fpr your help.
    Kind regards,
    Timo

    Hi Mario,
    thanks a lot for your answer. If I understand correctly your solution works only if the other web application in the parent window is also located in the portal, unfortunately my web application is outside the portal.
    Is there a solution for this, or should I look for something else than using Visual Composer?
    Kind regards,
    Timo

Maybe you are looking for