on 08-25-2004 4:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.