Skip to Content
author's profile photo Former Member
Former Member

How to read Component profile.properties without using CAF?

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 27, 2004 at 12:31 PM

    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 😉

    Add comment
    10|10000 characters needed characters exceeded