cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to read URL Parameters using Web DynPro.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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