Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 11, 2009 at 07:43 PM

    Hi,

    Try this:

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

    Regards,

    Satyajit

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2009 at 02:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded