Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Landing page not using correct donut chart in Service Operations Workspace

saidweintraub
Tera Contributor

Hi,

 

This is driving me nuts and this is only in my PROD instance as it works fine in DEV and TEST.

 

The landing page Donut Charts that I select from SOW Configurations > Landing Page > Tier 1 OR Tier 2 Donut configurations do not actually show up for my users.  the only thing that shows up in the OOTB Overview dashboard.

 

I even renamed the Overview Dashboard and I don't see the updated name!  I've cleared cache and used multiple browsers.

 

In attached image, top is whats selected, bottom is what shows up

6 REPLIES 6

MayP
Tera Contributor

Hi @saidweintraub ,

I’m running into a similar issue. In our instance, the Dount configurations for Tier 1 are defined in the SowIncidentLandingPageUtils UX Client Script Include.

To make it easier to edit, I opened it from the Platform Analytics view, but the changes I made aren’t being reflected on the landing page.

Is this the same case as yours?

Hello @MayP 

When you open the client script of your viewport in UI builder, then it opens in a pop up called Edit client script where in the left there is list of all components leveraging this client script and script on the right:

/**
 * @param {params} params
 * @param {api} params.api
 * @param {any} params.event
 */
function handler({
    api,
    event,
    helpers,
    imports
}) {
    var table;
    var title;
    var query;
    var evamId;
    var elementID = event.elementId; //Get element id from donut.


    //get the donut details if the viz elementID starts with 'sow_donut' -- update it
    if (elementID.startsWith("sow_donut_")) { //NEED ATTENTION
        table = event.payload.params.table; //Get the table name from donut
        title = event.payload.data.elements[0]; //Get the legend title from donut
        query = event.payload.params.query; //Get the data source query from donut
    }

    // Apply variables to Page State
    const currentVizSelection = {
        "table": table,
        "element": elementID,
        "title": title,
        "query": query
    };    

    if (event.payload.id == 'tabs_1') {
        currentVizSelection.table = null;
    }
    api.setState("currentVizSelection", currentVizSelection); //set  client state parameters to view the data in widget data list
    api.setState('listRefreshRequested', {
        timestamp: new Date().getTime()
    }); // Set the TimeStamp in widget data list
    api.data.get_datetime_now.refresh(); // Refresh the timestamp in Widget data list
    api.setState('hideList', false); // Enable or show the Widget Data List

}




Hope that helps!