- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 02:29 AM
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;
}
How it should work by initial load:
Card view:
Thank you in advance!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2024 01:16 AM
You can have a loader component until the response is received from the script rather than showing it blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2024 01:16 AM
You can have a loader component until the response is received from the script rather than showing it blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 04:07 AM
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!