Use URL Parameters in WPC Pages

Hi all,
Is there anyway to pass url parameters when calling a wpc page? We would like to call a wpc page and pass a URL a parameter that would then be accessible to each individual component within the wpc page. Also, how can we read the url parameter in the XSLT for the component webforms? Any help would be appreciated.
Thanks and Regards,
Shibendra

That would come within flex.
In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? 

Similar Messages

  • How can I enable session(using url)  tracking in home page

    i am developing bidding application. How can I enable session(using url) tracking in home page ?
    for example :
    http://mydomine.com/index.jsp;jsessionid=4A38A4496F6862681DFD09CD6D648485.tomcat75
    please help me.

    Doubleposted. Please continue here: [http://forum.java.sun.com/thread.jspa?threadID=5308686&tstart=0]
    In the future, do not use the back button to edit the message, but use the edit button instead. Otherwise you're reposting the form again. You should know that better as being a web developer.

  • Using URL Parameters with HTTP Comms Channel

    Hi,
    I need to build a new interface (HTTP - RFC) which will use several URL parameters. I've created a HTTP communications channel and Sender Service and this works. I'm able to define several URL Parameters by checking 'Adapter-Sepcific Message Attributes' and then 'Apply URL Parameters' then specifying the individual parameters.
    This is straight forward so far but in usual SAP fashion the documentation on HTTP Comms Channels and URL Parameters is non existent. My question is how do I use these parameters once they are passed. I need to use the values as input parameters for the RFC which means I'll need to map these in the Integration Repository I can't find anything on SDN or SAP help that answers the question.
    I know I could include these values in the XML payload but that would mean my 'customer' would need to amend their application and I'd rather keep things as they are.
    Looking forward to your replies.
    Thanks in advance.

    May be this could help you to refference . .
    For each process template, you can define interactive or composite form reference objects that can optionally be executed at runtime.
    To be able to see and execute the reference object at runtime, you must add an appropriate runtime view.
    Prerequisites
    You can only attach standalone interactive forms to a process. For more information, see Interactive Form Types.
    Activities
    To attach an interactive form to a process:
           1.      Open the gallery and select a process template. To open its design time, choose Open…
           2.      To switch to edit mode, choose  (Edit).
           3.      Open the Forms tab page.
           4.      Choose Add and select the type of reference object you want to add. You can choose between Callable Object and Development Object.
    Browse and select the reference object, and choose Add once again.
           5.      Repeat step 4 to add more objects.
           6.      To define parameter mapping, select an entry and choose Map Parameters. Select a parameter from the left-hand table, and then select the parameter you want to map from the right-hand table. This groups the input parameters of the form reference object to the relevant input parameters of the process.
    If the process does not define input parameters, you can set default values.
           7.      When you have defined the required mappings, choose Done.
           8.      Whenever a newer version of the form reference object is available, its status on the Forms tab page changes to  (Deprecated). To update the object, select it from the list and choose Update. The status changes to  (Active).
    Parameter mapping is preserved unless the parameters of the new object version are different. In this case, you need to define mappings again.
           9.      Finally, choose  (Save).

  • Option 2: Clear URL parameters jut before page is displayed

    Is it possible to clear the URL parameters after they have
    been used to
    filter out recordsets, etc. but before the page is displayed
    so that the URL
    address does not have any url paramters ?
    A

    I did, thing is that it is using the 'insert' behaivor from
    DW, I went to
    the line where the Querystring is added to the URL and
    commented it. That
    did the trick.
    A
    "RobGT" <[email protected]> wrote in
    message
    news:ej1nkq$krp$[email protected]..
    >
    > Send them through a form POST instead of using GET?
    > Cheers,
    > Rob
    >
    http://robgt.com/ [Tutorials and
    Extensions]
    > Firebox stuff:
    http://robgt.com/firebox
    > Skype stuff:
    http://robgt.com/skype
    > SatNav stuff:
    http://robgt.com/satnav
    >
    >

  • Using URL Parameters in a PDF Form

    I built a form in LiveCycle Designer ES and I would like a couple of fields auto populated. The only way I could see doing this without having to purchase the LiveCycle Forms Server or another solution, is to embed the information in the URL.
    I found a blog post about it on Stefan Cameron's blog:  http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/
    I was able to get this to work, but when I try to allow the user to save their form locally, the form information get cleared when they try to reopen it.
    I searched the NET and really couldn't find anything related to my problem.
    Does anyone have an idea about this or should I be looking at a different solution?
    Thanks,
    James

    I think that I was able to resolve this issue myself.  After opening the PDF with URL parameters, you need to manually enter data into a field before saving. After manually entering data in a field and saving, the form contains all of the data.

  • HTTP to File Scenario using URL parameters.

    Hi,
    I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.
    CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.
    So we are simply receiving parameters in plain text in inbound payload.
    I need to convert this payload to XML format and am tring to work this out using dynamic configuration.
    But It is throwing parser error.
    BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)
    Here I have to use HTTP sender adapter.
    Please suggest how can I acheive this.??
    Regards,
    Sachi

    Hi Mark and Maciej,
    The Inbpound payload we are reciving is of the kind:
    sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit
    As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.
    Can you please help me to out how can I add prolog and epilog.
    How can I change my payload to XML format.
    Regards,
    Sachi

  • How to use URL parameters in Flex?

    Hello Everyone,
    I wanted to know how can the parameters passed in a URL be used in our Flex application. I searched in the forum and tried these links:
    http://forums.adobe.com/message/217950#217950
    http://www.danvega.org/blog/index.cfm/2009/2/5/Flex-FlashVars-in-local-development
    In the second link, this is the solution provided:
       1. // if we've detected an acceptable version
       2. // embed the Flash Content SWF when all tests are passed
       3. AC_FL_RunContent(
       4.         "src", "ffManager",
       5.         "width", "100%",
       6.         "height", "100%",
       7.         "align", "middle",
       8.         "id", "ffManager",
       9.         "quality", "high",
      10.         "bgcolor", "#869ca7",
      11.         "name", "FFManager",
      12.         "allowScriptAccess","sameDomain",
      13.         "type", "application/x-shockwave-flash",
      14.         "pluginspage", "http://www.adobe.com/go/getflashplayer",
      15.         "flashvars","username=dvega"
      16. );
    private function init():void {
        // grab the username so we can track who is logged in
        [Bindable] private var:username= Application.application.parameters.username;
    But here, I am getting the hardcoded value (ie.,dvega) as the data inside my flex application. Instead I would need the dynamic data that is passed through the URL. For Ex: if I use the URL, http://172.22.41.154/MH_2.html?myName=Arush
    I need would need to use the name 'Arush' inside the application. Can you please help me on how and what part of the code is to be modified?
    Thank you,
    Warm regards,
    Deepak

    That would come within flex.
    In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
    http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
    I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? 

  • WebHelp - Executing a search using URL parameters

    Hello everyone,
    I'm trying to figure out how to execute a search in a WebHelp output by calling it from the URL, just like I do with map IDs. Basically, I'd like to do something like this:
    http://www.myserver.com/help/robohelp/index.htm?search=mysearchterm
    Or any variant. I've tried searching the help files and the internet but can't find out how to do this.
    Any idea?

    Peter, it's the other way around. I'd like to search within RH from the outside.
    In reality, the only thing I want to have is highlighting. The thing is, our help files will not be integrated within the software we're building and are actually just hosted on the web, and the user, hitting F1 or a Help button, will have his default browser open to the corresponding page. However, we do have access to quite a bit of information from the software, in a format that we can still change before release. At the moment, here's what we're planning:
    http://help.objectiflune.com/<lang>/<product>/index.htm#<module>_<dialog>.htm
    But we have one further bit of information that I'd love to use: <control>. Basically when someone uses the (?) button and clicks on a control, or if the user has an option active (clicked) when hitting F1, we can get the name of that control (checkbox, radio, button, input box, etc). What I would have liked to do is to highlight that control on the page. So technically I don't actually need search, I need highlighting. Oops, should have made that clearer (but I was avoiding a wall of text).
    Note that I will be using WebHelp Pro with RoboHelp Server 9, as soon as we can set that in place, if that changes anything.

  • Using URL Parameters  to Control Data Regions - HTML Data set.

    Hello folks,
    I creating a website for company and I am using HTML data set for siderbar navigation and content. It works beautifully and content updates as it have to without page refreshing. But I need to have an unique url for each sidebar element, so I i found  this nice sample http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html?row=20.  I did analogy with that sample on my website and indeed all sidebar elements now have unique url - but here comes new problem. Now  when I click on the each sidebar element - page starts to refresh . Here is my website http://www.varpa.eu . What have i done wrong ? How can I get  it to load new content without refreshing the page and to have each sidebar element unique url ? Please mention that I am talking only about the sidebar , not the topbar. Please help me .
    Sorry for my bad english , it aint my native language.
    Thank you,
    Richard.

    Thank you for your response Ben.
    That code which you provided is the top bar code. The top bar buttons should refresh the page, because I haven't done a spry magic with them yet.
    I was talking about the sidebar where Company , History etc.  elements are standing. Sidebar code is:
    <div id="sidebarbuttonwrapper" spry:region="about_us" >
    <div spry:repeatchildren="about_us" spry:choose="choose" >
    <div  id="sidebarbutton"
    onclick="location.href='about.html?row={ds_RowID}';"
    spry:when="{ds_CurrentRowID} == {ds_RowID}" spry:setrow="about_us"  spry:selected="sidebarbuttonselected" spry:select="sidebarbuttonselected" spry:hover="sidebarbuttonhover">{button_name}</div>
    <div  id="sidebarbutton"
    onclick="location.href='about.html?row={ds_RowID}';" spry:default="spry:default"  spry:setrow="about_us" spry:hover="sidebarbuttonhover" spry:select="sidebarbuttonselected">
    {button_name}
    </div>
    </div> 
    </div>
    As you can see here http://www.varpa.eu/test/about.html?row=0 when I click on the sidebar elements page doesn't refresh , but the each sidebar element doesn't have unique URL.
    When I included the URL params as in that sample above, now in this case http://www.varpa.eu/about.html?row=0 each element have unique URL, but this URL change makes page to refresh.
    Any suggestion how to achieve that each sidebar element would have unique URL, and clicking on it would not cause page to refresh ?
    Richard.

  • URL parameters through logon page

    Hi experts,
    I've to add this new requirement to the logon page and I don't know what is the best choise.
    The scenario is the following:
    Some users with a generic portal user need access to the Portal without authentication. The solution was sending the authentication parameters (generic user + password + user addition data) encrypted and by post method. These parameters would be decrypted by the logon page and this would grant the access after an addition data validation. This works fine by post method (encryptation has not been developed yet) but I have a problem because the additional parameter is missed after log in. This parameter is used in some java WD applications in Portal.
    When I pass all these parameters by get method, all works fine. User is authenticated correctly and the WD application gets the additional parameter. I don't know why it's missing with the post method. Also I've tried to pass the additional data by get and the authentication parameters by post method, but also it's not working. Maybe I need to add some custom code to pass this data parameter to the WD applications.
    Does anybody know what could be the problem? Or if could I solve this scenario with another option? The anonymous authentication could be great but I need validate the additional data and hide the authtentication data and I don't know if this method is useful for this propose.
    Thanks a lot in advance.

    HI,
    I am not clear about your requirement. But I think setting up the required iView for Anonymous user and named anonymous users
    might help. Pl check
    http://help.sap.com/saphelp_nw04s/helpdata/en/cd/1aad4abcb98c4597f9e395a6b62f43/frameset.htm
    If your iView is a WD Iview then you can try two things. You can retrieve the parameters in WD using inbound plug
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/c813b3d9cd6bb7e10000000a1553f6/content.htm
    or you can set the authentication of the wd application where it does not expect authentication
    http://help.sap.com/saphelp_nw04s/helpdata/en/09/a4d6a674bc1d4a9e74abf81bed3ef6/content.htm
    Srini

  • Error using XI HTTP adapter specific message attribute URL parameters

    Hi XI gurus, in our XI 7.0 SPS11,
    we have problem using URL parameters of plain HTTP receiver adapter.
    If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
    We carried out this test:
    1. not using adapter specific message attribute and setting
    a static URL target with fixed parameters it runs correctly.
    2. using adapter specific message attribute for target
    URL and URL parameters both doesn't runs correctly.
    3. using adapter specific message attribute only for target
    URL doesn't run correctly.
    These attribute key used for URL parameters:
    URLParamOne
    URLParamTwo
    URLParamThree
    URLParamFour
    URLParamFive
    Namespace: http://sap.com/xi/XI/System/HTTP
    Can you solve this issue? Are there oss notes, corrections, ...
    Thanks in advance.
    Marco Tricase

    Some other test done with TCP gateway.
    Activated adapter specific message properties for
    *URL
    *HTTP Header fields (one header field named "lisca")
    *URL Parameters (one param named "objectType")
    The HTTP message catched by TCP Gateway
    POST /csl/cslinker HTTP/1.0
    content-type: text/xml; charset=UTF-8
    content-length: 318
    connection: close
    accept: /
    user-agent: SAP Web Application Server (1.0;700)
    host: 10.10.43.94:54000
    accept-encoding: gzip
    <?xml version="1.0" encoding="UTF-8"?>
    seems nothing has been generated, and obviusly URL and params have been set in message mapping.
    Hope some guru has been solved the issue ...
    Pasquale Rossiello

  • Help with URL Parameters and HTML DataSet please.

    Hello everybody!
    Looking at the example page: "Using URL Parameters to Control Data Regions", towards the bottom it gives an example of "Set by Product Name", from an XML DataSet using the following sample code:
        //Data set for the second example. var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");    //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data. if (params.product){    ds2.setXPath("products/product[name = '"+params.product+"']");    ds2.loadData(); }
    Can anyone please explain how to amend this to work with a HTML Dataset rather than XML?
    The first example on the page (Set by RowID) works unchanged for the HTML DataSet, but I don't know what I should replace the 'setXPath' line with.
    I see this has been asked before, but I'm afraid I can't find any answer that works (or, more often, that I can understand properly!)
    Grateful for any suggestions.
    Len

    Wow! Thanks Ben.
    I hadn't thought about using Stacked Containers.
    I'll test this out tonight and let you know how I get on.
    Cheers,
    Len
    A few days later and at last I've been able to test your suggestions.
    I think I must be doing something wrong as the links and content don't work at all:
    http://www.myosanthe-bernhard-huber.com/html/stack1.php
    I know that the stacked containers do work (http://www.myosanthe-bernhard-huber.com/html/stack0.php), so I guess there are some errors in the coding somewhere.
    Would you mind reviewing, please?
    The important thing for me (in this case, anyway) is to get the called page's content using its 'Ref', and I'm not sure what benefit there is in using stacked containers as opposed to master-detail containers.
    The master-detail method works reasonably well for me at
    http://www.myosanthe-bernhard-huber.com/html/fotoalbum.php and sub-pages.
    Perhaps I am betraying my lack of knowledge, but as I said in my original post, I think that I just need the HTMLDataSet equivalent to:
        //Data set for the second example.
    var ds2 = new Spry.Data.XMLDataSet("../../demos/products/products.xml", "products/product");
       //If the URL parameter 'product' has a value, set the XPath that includes a filter and then load the data.
    if (params.product){
       ds2.setXPath("products/product[name = '"+params.product+"']");
       ds2.loadData();
    which as you can see uses an XMLDataSet, but does exactly what I need.
    (see http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html)
    Thanks again for your help, Ben.
    Len
    Message was updated by: ec1lennie

  • How to work with URL parameters?

    Hi,
    I'd like to use URL parameters in my WDA application and then call the application with HTTPS://....?myparam=12345
    and depending on the value of myparam I'd then load some data.
    My first problem is how to declare this parameter. I added an importing parameter "myparam" to the method HANDLEDEFAULT for the DEFAULT starter plug of my window. Is that right? Then I declared this same parameter on tab Parameters of my application and left the value empty.
    The second problem is how to get the parameter value when the application gets called. I pasted HTTPS://....?myparam=12345 into my browser but in the method HANDLEDEFAULT the value of the parameter was initial... What am I doing wrong?
    Any hints are appreciated
    Ira

    Hi Regina,
    >Create the parameters you like as importing parameters >of your startup plug of your window.
    Umm, how? The only way I could add something to the startup plug is to have importing parameters in the method HANDLEDEFAULT. Is that what you mean?
    >Then you have to pass the URL parameter to your >application, otherwise it will dump. BUT you can define >a default value at the application. Go to the property >tab in the application, choose your parameter from the >value list, and set some suitable default value.
    Yes, but my problem is then that the default value of the parameter is always known. I don't know how / where to extract the actual value of the URL parameter. How do I access this value? (and where, which method?)
    Thanks,
    Ira

  • HTTP Receiver with URL Parameters

    Hi, I need to pass the following parameters when I do an HTTP post
    1. Data
    2. DataType
    3. Protocol
    4. Security
    5. DataFormat
    Here the Data will have the payload to be sent to HTTP receiver. Can anybody tell me, how I can pass the payload using URL Parameter.

    in the HTTP reciever CC
    from the help...
    - If you want to use URL parameters, select Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6.
    The parameters are included in the HTTP request under the names specified here.
    The technical names of the fields are URLParamOne, u2026, URLParamSix
    Also check this blog
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
    Edited by: Anand on Oct 15, 2008 8:40 PM

  • Problem with URL parameters& Forms

    First off, this is a school assignment so I am not looking for code, just suggestions. I e-mailed my prof, but she hasn't gotten back to me.
    I have a nim program, that game where you pick matches up till someone picks up the last match wins. I need to change the program so that it accepts a variable integer to change the starting number of matches. I opted to use a form, but this has gotten me into some trouble. My prof. used url parameters to determine who should go first, the human or the computer.
    Basically, I need to submit the variable in order to post the number, but I also need to redirect depending on who goes first.
    This is what she did with the URLS:
        [<a href="<%=root%>/StartServlet?first=computer">Computer</a> (that's me!)]
        [<a href="<%=root%>/StartServlet?first=human">Human</a>]My form is just a simple, standard form at the moment:
        <form name="input" action="<%=firstMover%>" method="post">
            <input type="text" name="matches">
            <input type="submit" value="Submit" name="Submit" />
        </form>Variable Retrieval:
            match= request.getParameter("matches");
            matchCount= Integer.parseInt(match);There is a lot of code associated with this program. So if you need more please just ask.
    Any suggestions are greatly appreciated as I have no idea...

    That might work, but I need to allow the user to choose who goes first, computer or human. I'm not sure if I can do that with a hidden form. (Maybe I am just not seeing it the way you are.) Also, she analyzes whether the person chose computer or human first in the startservlet class. It looks like she parses the URL there and grabs the parameters.
    Your suggestion gave me an idea... but I can't get the program to recognize my variable. I don't think I am sending it to the right place.
    Form:
    <form name="input" action="<%=root%>/StartServlet?" method="post">
            <input type="text" name="matches">
            <select name="firstMove">
                <option value="Computer" checked>Computer</option>
                <option value="Human">Human</option>
            </select>
            <input type="submit" value="Submit" name="Submit" />
        </form>    My request of parameters:
    public class StartServlet extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            String match= request.getParameter("matches");
            int matchCount= Integer.parseInt(match);
            Nim nim = new Nim(matchCount);
            HttpSession session = request.getSession();
            session.setAttribute("nim", nim);
            String first=request.getParameter("firstMove");
            if ("computer".equals(first)) {
                try {
                    nim.machinePlay();
                } catch(NimException e) {}
            }

Maybe you are looking for