Enable Sub Tabs and Add Analytics to Object Edit Pages

There are three steps to adding analytics to object edit pages.

  1. Set the "Is Prompted" filter in the analytic in Business Intelligence. This step is used when the requirement is to view contextual data specific to the record selected.

  2. Enable the sub tab on the object page.

  3. Add the analysis to the sub tab on the object page.

All of these steps are done using the Opportunities landing and edit pages. You can use these same steps for any of the object pages listed as analytics work areas in the sub table at the start of this section.

For service, the Service, Work Order, and Queue pages use the same procedures.

Set the "Is Prompted" Filter

For analytics to show on your user Opportunity pages you enable the "Is Prompted" filter on the name or object ID for the analysis. Adding this filter adds an analytic with data that relates only to the opportunity your user is currently viewing.

  1. Open an existing analysis, or create a new analysis in BI.

  2. In the report Criteria sub tab, select the Filter icon for the appropriate column. Under Operator, select is prompted. Leave the other options blank.

  3. Click OK.

Enable Object Edit Page Analytics Sub Tabs

This procedure uses the Opportunity object landing page as an example. The procedure is the same for all object edit pages.

  1. In Navigator click Application Composer.

  2. Select Sales from the Application drop-down list.

  3. Expand Standard Objects and go to Opportunity.

  4. Under Opportunity click Pages.

  5. Under Detail Page Layouts copy the standard layout or select an existing created layout where the Analytics sub tab is added.

  6. Click the Reorder sub tab.

    This shows the Configure sub tab option for the edit object page.
    Configure sub tab dialog for edit object page.
  7. Click OK.

  8. Click Done. The Analytics sub tab now shows on the Edit Opportunity page.

Add Analytics to Edit Object Sub Tabs

The final step is to add an analysis to the Edit Object sub tab you've just enabled. When an analysis is added to the object page, it shows data specific to the signed in user's transaction record. The specific data shows because of the "is prompted" filter being set in the analytic which passes parameters from the transaction record to the analytic. A parameter is visible in the analytic when a filter prompt is added.

  1. At the top of the Home Page click the arrow next to your name and select Edit Pages. The Edit Pages dialog appears.

  2. Select Job Role and choose the role to which your change should apply. Any analytics you add in this context apply only to the role you define here.

  3. In Opportunities on the analytics sub tab click Add Content and navigate to the analysis you want to show on the Opportunity page.

  4. Click Add next to the analysis and close the dialog. The analysis is now added to the Analytics sub tab.

  5. Next step you want to either save the default parameters, or add parameters specific the object your are working with.

    Click Parameters.

    This shows the Parameters button on the Edit Opportunity analytic.
    Parameter button
  6. The parameter used is pageFlowScope variable and is set by default for Opportunity, Leads, Partners, Service Request and custom object pages. For example, in the case of Opportunity the parameter is #pageFLowScope.biFilterName_OpportunityOpportunityId. In the case of Service Request it's "#{pageFlowScope.biFilterName_ServiceRequestServiceRequestId}" . If for any reason the parameter field is blank, insert the variable manually and save it.

    This shows the parameter value of #pageFLowScope.biFilterName_OpportunityOpportunityId on an Edit Opportunity ID analytic column ..#pageFLowScope.biFilterName_OpportunityOpportunityId on an Edit Opportunity ID analytic column.
    Parameters
  7. For the objects that aren't prepopulated with the pageFlowScope parameters, you can use one of these sessionScope variables depending on which object page you're on, and the columns available in the analytic.

    • Customer ID: #{sessionScope.zcmAnalyticsCustomerId}

    • Contact ID: #{sessionScope.hzAnalyticsContactPartyId}

    • Contact Name: #{sessionScope.hzAnalyticsContactName}

    • Lead ID: #{sessionScope.mklAnalyticsLeadId}

    • Opportunity ID: #{sessionScope.mooAnalyticsOpportunityId}

    • Partner ID:#{sessionScope.zpmAnalyticsPartnerId}