Add a Visualization to the Redwood Sales Dashboard

You can add visualizations of saved searches or Oracle Analytics Cloud analyses to the Sales Dashboard. You can pick from a set of predefined visualizations, or you can configure custom visualizations using the Visualization Configurations page. This topic illustrates how to add both predefined and custom visualizations to the Sales Dashboard.

Types of Visualizations That You Can Add

You can add both predefined and custom visualizations to the Sales Dashboard:

Prerequisites

Add a Predefined Visualization to the Sales Dashboard

This example illustrates how to add a predefined visualization to the Sales Dashboard for sales managers.

  1. On the Properties pane for the Sales Manager - My ToDo's Content (Copy) layout, click the + Add Section icon.

    This screenshot illustrates how to add a component to a Sales Dashboard layout.

  2. From the list of available components that display, click one of the predefined visualizations, such as My Team's Performance Chart.

    The newly added chart is added at the bottom of the layout. You can change the order the sections are displayed by using the Move Up and Move Down arrows in the Sections region.

    This screenshot illustrates how to reposition a component on a Sales Dashboard layout.

  3. Test the modified dashboard layout by previewing your application extension.

    1. Click the Preview button to see your changes in your runtime test environment.

      This is a screenshot of the Preview button in Visual Builder Studio.
    2. The resulting preview link will be:

      https://<servername>/fscmUI/redwood/cx-sales/dashboards/sales-dashboard

    3. Change the preview link as follows:

      https://<servername>/fscmUI/redwood/cx-sales/application/container/dashboards/sales-dashboard
  4. Save your work by using the Push Git command.

    Navigate to the Git tab, review your changes, and do a Git push (which does both a commit and a push to the Git repository).

    This screenshot illustrates how to use the Push Git command.

Add a Custom Visualization to the Sales Dashboard

If you previously created your own visualizations using the Visualization Configurations page, then you can add them to any Sales Dashboard layout:

  1. On the Properties pane for the Sales Manager - My ToDo's Content (Copy) layout, click the + Add Section icon > + New Section.

    This screenshot illustrates how to add a component to a Sales Dashboard layout.

  2. In the Create Section dialog, in the Title field, enter My Chart, and click OK.

    Note: The title is the name of the component, not how the component will appear at runtime on the dashboard. The runtime title comes from the dashboardTitle parameter that you add to the visualization fragment. See step 7.

    The newly added section is added to the bottom of the layout. Use the Move Up arrow to move the new section to the desired location.

    This screenshot illustrates how to reposition a component on a dashboard layout.

  3. Click the My Chart link.

    The template editor opens.

  4. Click the Code button.

    This is a screenshot of the Code button.

    Your new My Chart section displays with empty placeholder template tags.

    This screenshot illustrates the empty template tags.

  5. On the Components palette, in the Filter field, enter cx-srt-visualization.

  6. Drag and drop the cx-srt-visualization fragment to the template editor, between the template tags.

    This screenshot illustrates how to drag a fragment to the template editor.

  7. Add the following parameters to the fragment code so that the code looks like the below sample:

    <template id="myChart">
        <oj-vb-fragment name="oracle_cx_fragmentsUI:cx-visualization" class="oj-flex oracle-cx-fragmentsUI-cx-fragment-full-height" bridge="[[vbBridge]]">
        <oj-vb-fragment-param name="reportNumber" value="CDRM_1"></oj-vb-fragment-param>
        <oj-vb-fragment-param name="context" value='{"mode": "dashboard","source":"DV","dashboardTitle":"DV Adaptive Chart"}'></oj-vb-fragment-param>
      </oj-vb-fragment>
    </template>
    

    In your fragment code, be sure to replace the values for the reportNumber, source, and dashboardTitle parameters with the appropriate values for your custom visualization.

    This table describes some of the parameters that you can provide for a custom visualization.

    Parameters for a Custom Visualization

    Parameter Name

    Description

    reportNumber

    Enter the reference number of the visualization that you previously created.

    mode

    This value should always be dashboard.

    source

    Enter either DV or SRT.

    SRT refers to reports created using the Express Reports tool. Contact your Oracle representative for more information.

    DV charts are charts that you created on the Visualization Configurations page.

    dashboardTitle

    Specify the title of the chart. This title displays on the dashboard at runtime.

  8. Test the modified dashboard layout by previewing your application extension.

    1. Click the Preview button to see your changes in your runtime test environment.

      This is a screenshot of the Preview button in Visual Builder Studio.
    2. The resulting preview link will be:

      https://<servername>/fscmUI/redwood/cx-sales/dashboards/sales-dashboard

    3. Change the preview link as follows:

      https://<servername>/fscmUI/redwood/cx-sales/application/container/dashboards/sales-dashboard
  9. Save your work by using the Push Git command.

    Navigate to the Git tab, review your changes, and do a Git push (which does both a commit and a push to the Git repository).

    This screenshot illustrates how to use the Push Git command.