Use Composites in Story Designs

As a story designer, you can import composites to your story and use it as other SAP Analytics Cloud built-in widgets.

Import and Add a Composite to Your Story

To use your composite, you need to import it to your story first.

Procedure

  1. To import a composite, in the Assets panel, hover over Composites, and choose (Import Composite).

    You can also import a composite from Insert in the toolbar by selecting Start of the navigation path (Add) Next navigation step Composite Next navigation step Import Composite...End of the navigation path.

    A dialog appears where you can select the composite.

  2. Select a composite from the file repository.

    Once the composite's imported to the story, it's listed under Composites as other available widgets.

    To delete a composite from Assets panel or Insert menu, hover over it, and choose (Delete).

  3. To add a composite to your story, drag and drop it from Assets to the page, or select it from Insert.

    The composite is listed in the Outline panel, with the default ID Composite_1.

Next Steps

Once a composite's added, you can do actions on it as other widgets in your story, such as edit ID, find reference, enable or disable mouse actions to resize or reposition, show or hide, styling, and edit scripts.

If you want to make changes to overwrite an existing composite within a story, the story containing the composite must be saved and refreshed for the update to take effect.

Set Variables for Your Composite

In the Builder panel of the composite, you can choose what variables are used by the widgets inside:
  • Use widget variables (default): The widgets inside the composite still use their own variables, which have been set by the composite creator.

  • Use story variables: You can override the widget variables and use the story variables, which are applied to all the tables and charts in the story that use the same model.

How to Style Your Composite

After adding a composite to your story, you can customize it in the Styling panel or via CSS.

Procedure

  1. In the Styling panel of the composite, you can assign CSS class to the composite itself.
  2. You can define the size and position, margin, and border.
  3. You can change the story visibility by selecting one of these options under View Time Visibility:
    • Auto

    • Visible

    • Hidden

  4. Select allow vertical or horizontal scroll.
  5. To view the name and file path of the composite, select Show Details… at the top of the Styling panel.
  6. In the CSS editor, you can write CSS for all or individual widgets inside the composite as well, with the custom class names defined by the composite creator.
    For more information about how to define CSS, refer to Customize Themes Using CSS.