Configure Redwood Sales Dashboard Layouts

To modify the Sales Dashboard, you must first duplicate a predefined Sales Dashboard layout. Let's look at an example of adding a component to a dashboard page.

Predefined Dashboard Layouts

The Sales Dashboard is constructed using a Dashboard fragment, which is divided into two containers that hold dashboard layouts.

Each layout is read-only. To make changes to a layout, you must first duplicate it.

The Dashboard fragment includes these two containers:

  • Metrics Container

    This container holds read-only metric card layouts. Use this container to add new metric cards to metric card layouts.

    This screenshot illustrates the Metrics Container.

  • Contents Container

    This container holds read-only dashboard page layouts. Use this container to add new components to dashboard pages.

    This screenshot illustrates the Contents Container.

The Metrics Container includes two read-only layouts:

  • Sales Manager Metrics

  • Sales Representative Metrics

This screenshot illustrates the layouts inside the Metrics Container.

The Contents Container includes four read-only layouts:

  • Sales Manager - My ToDo's Content

  • Sales Manager - Pipeline Content

  • Sales Representative - My ToDo's Content

  • Sales Representative - Pipeline Content

This screenshot illustrates the layouts inside the Contents Container.

Duplicate a Layout

In this example, let's add a predefined My Open Tasks component to the sales representative's version of the Sales Dashboard.

To start, you must first duplicate an existing layout.

  1. Navigate to the Sales Dashboard.

  2. Under the Settings and Actions menu, select Edit Page in Visual Builder Studio.

    This screenshot shows how to enter into Oracle Visual Builder Studio.
  3. Select the Redwood Sales project that's already set up for you. If only one project exists, then you will automatically land in that project.

  4. If you're working in an active sandbox when you launch Visual Builder Studio from Digital Sales, then Visual Builder Studio looks for a workspace that's associated with your sandbox. If you're not working in a sandbox when you launch Visual Builder Studio, then Visual Builder Studio looks for a workspace without a sandbox. You might have to select a workspace if more than one workspace exists. If no workspace exists, then Visual Builder Studio automatically creates one for you.

  5. When you enter into your workspace in Visual Builder Studio, you land on the Page Designer. This is where you create your application extension.

    The Sales Dashboard is displayed in the main design area called the canvas.

    This screenshot illustrates the Sales Dashboard in Oracle Visual Builder Studio.

  6. In this example, let's add a My Open Tasks component to the sales representative's version of the Sales Dashboard.

    On the Structure pane, click the Contents Container node.

    This screenshot illustrates the Contents Container.
  7. On the Properties pane, scroll down to the Sales Representative - My ToDo's Content layout.

  8. Click the Duplicate icon to make a copy of the layout.

    This screenshot illustrates how to duplicate a layout.

    Visual Builder Studio makes a copy of the layout named Sales Representative - My ToDo's Content (Copy).

  9. Review the layout's condition to ensure that the correct metric card ID and role are specified for this layout. You can either accept the metric card value inherited from the original layout that you duplicated, or you can update the metric card ID.

    Use this format for the layout condition:

    $variable.selectedKpiTab == '<metric card id>'

    For example:

    $base.variables.selectedKpiTab == 'myToDosMetrics'

    Here's an example that includes a role:

    ($variables.selectedKpiTab == 'myToDosMetrics' || $variables.selectedKpiTab == undefined) && ($user.roles.includes('ORA_ZBS_INSIDE_SALES_MANAGER_JOB') || $user.roles.includes('ORA_ZBS_SALES_MANAGER_JOB'))

    Note: The conditions for all sales manager layouts specify a job role. Notice, however, that the sales representative layouts don't have any role specified. This means that if the signed-in user isn't a sales manager, then they'll always see the sales representative version of the Sales Dashboard. Moreoever, if the sales representative layout is listed first, before the sales manager layout, then the sales representative layout will always display because (1) it's evaluated first and (2) its condition applies to any user regardless of their role. To read more about how layouts are evaluated for display, see Understand Layout Order.

You're now ready to make changes to the dashboard layout.

Modify the Layout

Once you have a layout that's ready to modify, you can make a change.

  1. Click the Add Section icon to add a component.

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

  2. From the list of available components that display, click My Open Tasks saved search list.

  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

      Here's the default layout for the My To-Dos dashboard page for sales representatives:

      This screenshot illustrates the My To-Dos page of the Sales Dashboard for sales representatives.

      The screenshot below illustrates what the modified dashboard layout looks like with the new My Open Tasks component.

      This screenshot illustrates the new dashboard with the My Open Tasks component now displayed.

  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.

Understand Layout Order

When you duplicate multiple layouts, keep in mind that the sequence of those layouts is meaningful.

The sequence is meaningful because Visual Builder Studio evaluates the conditions of each layout to determine which one to display to the user. The first layout to meet the signed-in user's conditions is the layout that's displayed.

After creating multiple layouts, you can always change the sequence of layouts using the Move up and Move down options.

This screenshot illustrates how to change the sequence of dashboard layouts.