Skip to Content
avatar image
Former Member

how to set application properties like sap.logoffURL by coding

hi everyone ,

i am setting some properties like expiration time and logoffurl by coding in webdynpro i am using this code--

IWDApplicationPropertyInfo et=wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.expirationTime");

if(et != null)

et.setAttributeValue("sap.expirationTime","100" );

but iam getting this error---

java.lang.IllegalArgumentException: Cannot set attribute value because RepositoryObject(com.sap.tc.webdynpro.progmodel.repository.IWDApplicationPropertyInfo:sap.expirationTime) does not have a (translatable) attribute named expirationTime.

can anyone please tell me how to resolve error.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 18, 2006 at 11:04 AM

    Hi,

    Try this:

    et.setAttributeValue(WDConfigurationConstants.APPLICATION_PROPERTY_EXPIRATION_TIME,"100" );
    

    Regards,

    Satyajit.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2006 at 04:56 AM

    hi styajit,

    i tried you code but it is still giving the same error.

    regards,

    siddharth

    Add comment
    10|10000 characters needed characters exceeded