Skip to Content
avatar image
Former Member

Access to Application properties


within NWDS I set some user defined Application Properties like "CONFIG_ITEM". How can I access this in my WebDynpro application?

I tried the following

WDDeployableObjectPart currentAppPart = wdComponentAPI.getApplication().getDeployableObjectPart();
IWDConfiguration config = WDConfiguration.getConfiguration(currentAppPart);

String configured = config.getStringEntry("CONFIG_ITEM");

At the second line I get an WDConfigurationNotFoundException. So obviously that's not the correct way...

Thanx for any help,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 27, 2005 at 03:47 PM

    Hi Frank,

    Try this

    IWDApplication application = wdComponentAPI.getApplication();

    Properties properties = new Properties();

    Collection wdProperties = application.getApplicationInfo().getApplicationProperties();

    for (Iterator iter = wdProperties.iterator(); iter.hasNext();) {

    IWDApplicationPropertyInfo wdProperty = (IWDApplicationPropertyInfo);

    if ("CONFIG_ITEM".equals(wdProperty.getName()){

    String config_item = properties.getProperty(wdProperty.getName());



    Let me know if you have any problems.



    Add comment
    10|10000 characters needed characters exceeded

    • Hello,

      I've a question... Are these properties configurable without redeploying the Web Dynpro application?

      We have some constant values defined in some Web Dynpro applications and we wanted the user could change it easily. So if these application properties could be maintainded easily by the user, we could use it for definig those constants.

      Thanks in advance,