Skip to Content
author's profile photo
Former Member

Is it possible to read URL Parameters using Web DynPro.

In my Web DynPro application I would like read the parameters from URL.

e.g. If user types in

http://localhost:50000/webDynProApps?attributeValue=ja

From webDynpro (ebDynProApps) I wanna read attributeValue.

One more question: I have created TextView/Label elements. How do I change the color for these elements (either Design time/Run time)

Any Suggestions?

Thanks,

Praveen.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    May 22, 2004 at 05:26 PM

    Hi Praveen,

    it is possible reading the parameters by using the class WDWebContextAdapter. Using your sample url, the line:

    String aValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("attributeValue");
    

    sets aValue to "ja".

    It is not possible to the change the colors of UI elements directly. Colors and images are defined by themes, which combine CSS definitions and image files to determine the look and feel.

    Hope that helps.

    Best regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    May 24, 2004 at 07:49 AM

    As of now, I guess one can read the URL parameters in web dynpro. But not sure whether it will still be supported in the newer versions.

    You can chk out netweaver help for an example on this:

    http://help.sap.com/saphelp_nw04/helpdata/en/38/37d93f130f9115e10000000a155106/frameset.htm

    Stefan, what abt the "Response" object? Howz that referenced?

    Regards

    Shakeel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Shakeel,

      as far as i know, there are no methods exposed by the Web Dynpro APIs to access the Request/Response objects directly. I know, it's possible to get them using some internal methods, but you should not use these methods.

      Hope that helps.

      Regards

      Stefan