Allison the administrator can embed document generation capabilities into OpenSocial
containers such as CLM dashboards.
Before you begin
Allison might have to set the CORS_DOMAINS property on the server where the web app is
installed, to allow XHR requests from the
Rational® solution for CLM server.
This is not required if the CLM application and the web app are co-hosted.
About this task
Allison's project manager tracks project status on a CLM dashboard and wants to generate
documents right from the dashboard without having to launch the Rational Publishing Engine web app.
Alison can add a sample widget from the Rational Publishing Engine web app to the dashboard so that
her project manager can generate this document regularly.
Procedure
- Alison finds the sample widget at
http://rpe_server:port/rpeng/widgets/singlereport.xml
and examines the XML file.
- Alison opens the CLM dashboard for her project.
- From the dashboard, click the Add Widget tab.

- Click Add OpenSocial Gadget.
- Allison enters the URL to the sample widget from step 1 and clicks Add
widget.
- Allison closes the widget catalog and saves the dashboard. The widget appears on her project dashboard.
- In the widget menu, click Settings.
- Alison enters the report name. She sets the Shared field to false, otherwise the generated
documents are visible to anyone with access to the server.
- Allison logs into Rational Publishing Engine in the
widget.
- She clicks Refresh in the widget.
- She clicks Generate Document.
- The document is generated successfully and Allison clicks the link to download the
documents.