cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Component profile.properties without using CAF?

Former Member
0 Kudos

Do you know how to read DC WebDynpro Component profile.properties without using CAF.

A Component.profile.properties is located under

Scr/components/fullcomponentname/

Thanks, Best regards

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

import com.sap.tc.webdynpro.services.sal.config.api.IWDConfiguration

import com.sap.tc.webdynpro.services.sal.config.api.WDConfiguration;

import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObject;

import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;

import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPartType;

....

WDDeployableObjectPart myComponent = WDDeployableObject.getDeployableObjectPart

(

"mycompany.com/myapp~mydc" // name of DC

"com.mycompany.myapp.mydc.MyComponent" // full component name

WDDeployableObjectPartype.COMPONENT

);

IWDConfiguration config = WDConfiguration.getConfigurationByName

(

myComponent

"profile.properties" // not sure, try "profile" as well

);

Exception handling ommited.

Hope this helps. Just wondering what's for?

Valery Silaev

P.S. full disclosure: CAF developer, author of PropertyConfigurable components concept

Answers (0)