cancel
Showing results for 
Search instead for 
Did you mean: 

Getting null value for SELF DEFINED application Property

Former Member
0 Kudos

Hi,

I want to behave my application differently in DEV,TEST,PROD.

So i have defined a Self Defined Application Property in Web Dynpro application using the application editor in NWDS.

with name "RUN_SYS" and using following code to read t in the application

IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();

String mySys = req.getParameter("RUN_SYS");

But iam getting null value.

Is anything missing or do i need add any jar file for this

Please Help me

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this:


String runningIn = wdComponentAPI.getApplication()
                                 .getApplicationInfo()
                                 .findInApplicationProperties("RUN_SYS")
                                 .getValue();

Regards,

Satyajit

Answers (1)

Answers (1)

matteo_fusi2
Participant
0 Kudos

Hi,

with the code that you have posted, you read the parameters in the browser query string, or iview application parameter. Add the parameter: http://.........?RUN_SYS=.

Regards

Matteo