cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro - Application Parameter

Former Member
0 Kudos

Hi,

I am working in a scenario where the UI Visibility in the view is based on Application parameter of the Web dynporo application.

If the application parameter value is 'X' then i need to show some set of UI and if it is 'Y' i need to show another set of UI.

I created an Application with the name 'TestApp' with the parameter name 'User' and value '' in the application properties.

I have written the following code to get the application parameter value.

IWDApplicationInfo appInfo = wdThis.wdGetAPI().getComponent().getApplication().getApplicationInfo();

IWDApplicationPropertyInfo key = appInfo.findInApplicationProperties("User");

I have created two iviews for the same application with apllication parameter 'User' with the values 'X' in one view and 'Y' in another iview.

The code returns an empty string instead of the the value 'X' or 'Y'.It is getting the value which was given in the web dynpro application.

Please suggest how to proceed.

Regards,

Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi Kumar

Have you resolved your issue...

Check the browser uri whether apllication parameter appended or not,

if appenend, please use above response for fetching..

Thanks

Arun Jaiswal

srinivas_sistu
Active Contributor
0 Kudos

Hi,

u can try the below way to access application parameters.

String strType = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("appParamType");

//So that strType will hold the value given for the App Param Key appParamType.

If(strType.equalsIgnoreCase("X"))

{

....

}

else if (strType.equalsIgnoreCase("Y"))

{

...

}

Regards,

SrinivaS