Reuse a Layout Object

You can save time by reusing layout objects that you add to a report instead of re-creating them. For example, you have a multiple-page report and you want to show the company logo in the page header of each page. Insert the logo once and reuse it on all other pages.

Procedure

  1. Click the object to reuse.
    Tip: To quickly select the parent of an object, click the object, and then click the select ancestor button select ancestor icon in the title bar of the Properties pane.
  2. In the Properties pane, set the Name property to a value beginning with a letter to uniquely identify the object and press the Enter key.

    IBM® Cognos® Report Studio may have already specified a name for the object.

  3. To reuse the object in another report, open that report.
  4. From the Toolbox tab toolbox tab, drag the Layout Component Reference object to the location in which it will be reused.
  5. In the Component Location box, do one of the following:
    • To reference an object in the current report, click This report.
    • To reference an object in another report, click Another report, click the ellipsis button, and open the report.
      Note: In active reports, you cannot reference objects from another active report.
  6. In the Available components to reference box, click the object and click OK.
  7. If the referenced object is in another report, click the Layout Component Reference object and in the Properties pane, set the Embed property to specify how to store the referenced object in the report:
    • Click Copy to store a copy of the object.

      The copy is not automatically updated if the source object is modified.

      Note: In active reports, you can store referenced objects only by copying them to the report.
    • Click Reference to store a reference, or pointer, of the object.

      The reference of the object is automatically updated if the source object is modified. For example, if you open or run the report, you see the modified object.

Results

A copy or reference of the object appears where you placed the Layout Component Reference object. If a source object is changed, you can update reused objects.
Tip: You can also create a new report or template and add all the objects to share. All your shared objects then reside in a single location, like a library.