Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting null value for SELF DEFINED application Property

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

Former Member
Former Member replied

Hi,

Try this:

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

Regards,

Satyajit

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question