URL parameter to WDA context

Hello all,
I'd like to call a WDA application with passing parameters to the URL. Application would have no connection to the backend (no function calls etc.), with context only filled by parameters in the URL.
1. Is there, as in WD Java (WebContextAdapter), a method to read the data from the URL to send it to the context? Any code example would be welcome!
2. Is there a limitation on the number of parameters, and/or on the length of the URL string?
Thanks in advance,
Francois

Maximum length of URL is practically 2K.
Apparently you can go to 2083 bytes on IE.
Never tested it as it is not nice way to send data.
Use the HTTP body to pass the data. (HTTP POST not get)
eg
CALL HTTP service  xyz on ABAP stack.
Your custom service.
very simple to code.
That can have as much data as you like.
The data can be persisted, under a custom key.
Then redirect to a Service that is your WDA URL.
Passing only the KEY eg a GUID.
The WDA just reads the data.
That way you are not limited to the URL
Cheers
Phil.

Similar Messages

  • 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

  • Different behavior when URL Parameter clientDebug is set

    Hi experts
    I'm facing a strange behavior in my WebDynpro application.
    Whenever I launch it with the URL parameter sap-wd-clientDebug set to X the interactiveForm element on one of my views works flawlessly (i.e. the assigned context nodes on my view get updated on each roundtrip and changes in the context are reflected in the interactiveForm). When sap-wd-clientDebug is not set however the interactiveForm still communicates with the WD (a breakpoint in a dummy OnSubmit action is triggered correctly when the submit button on the interactiveForm is pressed) but contex changes are no longer reflected in the interactiveForm. Only after navigating back and forth between my views does the interactiveForm get updated.
    Any hints or ideas on how to solve this issue would be great.
    ADS Version: 800.20090130093518.519793
    Verion of ZCI Script: 802.20090903061432.597600.590319
    Only the attributes dataSource and templateSource of the interactiveForm element are set.
    Regards
    Chris

    any clue ???

  • Put my URL parameter in a JavaBean attribut

    Put an URL parameter in a JavaBean attribut
    I am new in JHeadstart and ADF/UIX Technologie
    I need to put an URL parameter in a JavaBean before to show the view
    My URL :
    http://IPadress:8989/IBA2-ViewController-context-root/StartAppModule.do?login=TOM
    My struts-config.xml :
    <action path="/StartAppModule" forward="/StartIusIbaMesApplis.do"/>
    <action path="/IusIbaMesApplisTable" input="/WEB-INF/page/IusIbaMesApplisTable.uix" type="oracle.jheadstart.controller.strutsadf.action.JhsDataAction" className="oracle.jheadstart.controller.strutsadf.action.JhsDataActionMapping" parameter="/WEB-INF/page/IusIbaMesApplisTable.uix" name="DataForm">
    <set-property property="modelReference" value="IusIbaMesApplisUIModel"/>
    <set-property property="breadcrumbParamExpressions" value="${bindings.IusIbaMesApplisAppwebNom}"/>
    <set-property property="bindParams" value="IusIbaMesApplisIterator=${data.Bean1testUIModel.userlogin}"/>
    </action>
    In a JSP or a Servlet that will probably be
    //get param login
    String myparm = request.getParameter("login");
    //find my JavaBean
    DCBindingContainer bc = (DCBindingContainer) request.getAttribute( "bindings");
    JUCtrlAttrsBinding ctrlBindinglogin =(JUCtrlAttrsBinding)bc.findCtrlBinding("data.Bean1testUIModel.userlogin ");
    //put the value in my JavaBean attribut
    ctrlBindinglogin.setAttribute("userlogin ", myparm);
    How to put this whith ADF/UIX technologie after the JavaBean was created and before to show the view ?
    Is it the better choice to do that ?
    Could you help me please ?

    Hi,
    Yes, I think Dispatch_input() has to be put in Do_request event.
    There is another alternative to using Get_form_fields method. In Do_Handle_Data event you can read the table form_fields and get the value of the input on the page.
    read table form_fields into <workarea> with key name = '<url inputfield name>'.
    get the value.
    Hope this helps.
    Thanks,
    Rashmi.

  • Put an URL parameter in a JavaBean attribut

    Hello
    I am new in JHeadstart and ADF/UIX
    I need to get my URL parameter in an UIX view.
    I want to put the value in a JavaBean before to show the view
    My URL :
    http://10.1.100.195:8989/IBA2-ViewController-context-root/StartAppModule.do?login=TOM
    In a JSP or a Servlet my code will probably be
    String myparm = request.getParameter("login");
    DCBindingContainer bc = (DCBindingContainer) request.getAttribute( "bindings");
    JUCtrlAttrsBinding ctrlBindinglogin =(JUCtrlAttrsBinding)bc.findCtrlBinding("data.Bean1testUIModel.userlogin ");
    ctrlBindinglogin.setAttribute("userlogin ", myparm);
    How to put this in an UIX Form before to show the view ?
    Is it the better choice to do that ?
    Could you help me please ?

    Why can't I find anything in the java docs about the JSObject class and a listing of its methods?
    Message was edited by:
    7stud
    Ah, it's a proprietary Netscape extension to Java. It looks like trying to compile an Applet that uses the JSObject is a bit of a nightmare. You have to locate the jar file containing the netscape.javascript.JSObject class on your computer somewhere in your browser's folders.
    Also, my book says that if the web page author does not put "mayscript" in the applet tag, then the Java applet code won't be able to talk to javascript and cause it to change the page in the browser.
    Also, the user could have javascript disabled.

  • 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 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]

  • 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

  • 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.

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • 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

Maybe you are looking for