Show TOC Start of Content Area

Procedure documentation Creating References Between PAR Development Components  Locate the document in its SAP Library structure

Procedure

...

       1.      Create a new Portal Application Module DC Project named tc/epbc/test/usingdc with par name com.sap.test.usingdc.par

       2.      In Portal DC Explorer, expand the metadata node of this component to show the Used DCs.

       3.      Open the context menu for the Used DCs and select Add Used DC

       4.      Expand the Development Configuration to display the public part of the Portal Application DC tc/epbc/test/useddc. Select the API public part of this development component.

       5.      Select the following boxes: BuildTime, DeployTime, RunTime.

       6.      Choose Finish.

       7.      Rebuild the development component project using the menu command Project Rebuild DC Project.

       8.      Create a new Portal Component that calls the TimeService as follows:

Example

public void doContent(

    if (request!=null && response!=null) {

        IPortalComponentRequest request,

        IPortalComponentResponse response) {

        response.write("Call to time com.sap.test.useddc from com.sap.test.usingdc:");

        response.write("<br>");

        ITimeSvc timeSvc =
            (ITimeSvc) PortalRuntime.getRuntimeResources().getService(

                "com.sap.test.useddc.timeService");

        response.write(timeSvc.getDate());

    }

}

       9.      Open the portalapp.xml and add SharingReference property and set its value to com.sap.test.useddc.

   10.      Create and deploy the PAR file on the portal.

   11.      Test the components you have created by opening the portalapp.xml file of the project.

   12.      Switch to the Overview tab and click run on the TimeComponent component.

 

 

End of Content Area