cancel
Showing results for 
Search instead for 
Did you mean: 

how to set application properties like sap.logoffURL by coding

siddharth_jain
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this:


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

Regards,

Satyajit.

Answers (1)

Answers (1)

siddharth_jain
Active Contributor
0 Kudos

hi styajit,

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

regards,

siddharth