Service Operations Workspace - Landing Page initial load issue

Nikolett Vincze
Tera Contributor

Hello Everyone,

We are customizing the Service Operations Workspace and faced an issue on the Landing page. We created a custom version of the SowIncidentLandingPageUtilsSNC UX Client Script Include to hole the records from the Task table. We’ve created a custom EVAM Definition as well. The Donuts are looking good, the grid/list views are working as a charm…but we cannot fix the Initial Load getInitialVisualizationConfig. I’ve changed the script (find below), the result is: nothing displayed on the landing page by refresh or initial load (find screenshot below)… Could you advise me on this?

         /**

         * Returns initial visualization config

         * @Param {object} helpers

         * @return object

         */

 

         static getInitialVisualizationConfig() {

           const visualizationConfig = {

                "table": "task",

                "elementId": "task_assigned",

                "title": "Tasks assigned to you",

                "query": "active=true^assigned_toDYNAMIC90d1921e5f510100a9ad2572f2b477fe^sys_class_name=incident^ORsys_class_name=incident_task^ORsys_class_name=problem^ORsys_class_name=problem_task^ORsys_class_name=change_request^ORsys_class_name=change_task^ORsys_class_name=sc_task^ORsys_class_name=idea^ORsys_class_name=dmn_demand^ORsys_class_name=dmn_demand_task^ORDERBYDESCsys_updated_on",

                "evamId": "6583db861bbf02501096fc4b8b4bcbec", //custom EVAM definition Sys ID

                "queryForViewAllRecordCount": "active=true^assigned_toDYNAMIC90d1921e5f510100a9ad2572f2b477fe^sys_class_name=incident^ORsys_class_name=incident_task^ORsys_class_name=problem^ORsys_class_name=problem_task^ORsys_class_name=change_request^ORsys_class_name=change_task^ORsys_class_name=sc_task^ORsys_class_name=idea^ORsys_class_name=dmn_demand^ORsys_class_name=dmn_demand_task^ORDERBYDESCsys_updated_on",

                "tableForViewAllRecordCount": "task",

                "groupByField": "sys_class_name",

                "listView": "sow_landing_page_assigned"

            };

            return visualizationConfig;

        }

 

NikolettVincze_0-1723109306205.png

 

 

How it should work by initial load:

NikolettVincze_1-1723109306215.png

 

 

Card view:

NikolettVincze_2-1723109306222.png

Thank you in advance!!

1 ACCEPTED SOLUTION

Dibyaratnam
Tera Sage

You can have a loader component until the response is received from the script rather than showing it blank.

View solution in original post

2 REPLIES 2

Dibyaratnam
Tera Sage

You can have a loader component until the response is received from the script rather than showing it blank.

Hi DSam1!

Thank you for your reply, I've copied the loader component to the currentVizSelection client state parameter and that solved the issue...

But I treat it is as a workaround, so will check after the Xanadu upgrade 😅.

Have a nice day!