Add Images to Stories

You can add static images or dynamic images stored in a remote database to SAP Analytics Cloud stories. You can also bind the image widget to a script variable in your story, whose value can be the source URL of any image.

Prerequisites

To create a dynamic image, you will need a model based on a HANA view with the following attributes:
  • A column containing BLOB data, used in the dynamic image. It is recommended that the image BLOBs used are less than 5MB in size.

  • A column containing a unique ID used to link the image model to an aggregate model via linked models. When queries are performed on the aggregate model, the image object will update if a single member is filtered down to in the aggregate query. This prerequisite is necessary to prevent duplicate image data to be added to the model. For more information on linking models, see Blend Data.

Context

Procedure

  1. From the Insert menu in the toolbar, select Start of the navigation path (Add) Next navigation step ImageEnd of the navigation path.

    The widget is under the Others category.

  2. Do one of the following actions:

    You can upload a static image, which is an image locally uploaded from your computer, or a dynamic image, which is an image stored in a remote system.

    • To upload a static image, do the following:

      1. On the Builder panel, select + Add Image or (Upload Image).

      2. Search for an image on your computer and select Open.

        The image is added to the Image Library.
      3. From the Image Library, select the image you want to use.

    • To display a dynamic image from a data source, do the following:
      1. On the builder panel, select the Data Source tab.

      2. In the Data Source area, select + Add Model, select a model from the list, and select OK.

        The model you select will be used to display a dynamic image. Make sure that the model has at least one image dimension.

      3. In the Image Structure area, select + Add Image Dimension and select an image dimension from the list.

        The members from the selected image dimension will determine the available images to display.

      4. (Optional) Select + Add Alternative Image and upload an image from your computer to use when the remote image can't be displayed. For example, when the image data cannot be rendered.

        The alternative image will become the static image source when switching from dynamic to static. If a static image source is selected, it will become the alternative image when switching from static to dynamic.

      5. Select + Add Filters, and choose one member from the list of available members.

        The member you select will be the image that is displayed.

      In this case, the image can support linked analysis from charts, tables and geo maps, and you can see the relationship on linked widgets diagram.

    • (For story developers) To display an image whose source URL is the value of a script variable in your story, do the following:

      1. On the builder panel, select the Script Variable tab.

      2. In the Image Binding area, select a script variable to bind the image to it.

  3. On the (Styling) panel, select styling options for your image.

    For more information on styling images, see Format and Style Elements on Story Pages.

  4. (Optional) To insert a hyperlink on the image, select Start of the navigation path (Add Image Components) Next navigation step HyperlinkEnd of the navigation path

    For more information on hyperlinks, see either Linking to an External URL or to Another Page or Story or .