Where can I edit the My list filter widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2022 11:57 PM
Hello I am trying to edit this my list filter below on the CSM portal so I can add "My Incidents", "My Change Requests", etc. also to map it to the case table on the side. How do I do that?
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 12:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 12:32 AM
Hi, Vasantharajan. Thanks for your advise but I think this is from Agent Workspace? I have to do it on the CSM portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 12:32 AM
Hi
First you need to clone the simple list widget, so you can modify the code.
The view all button in the simple list calls a function in the client script section called "seeAll()"
You need to modify this function to behave the way you want it to
this.seeAll = function(){
$location.search({
id: c.options.list_page_dv || 'list',
table: c.options.table,
filter: c.options.filter
}); }
Or
For "Data Table" widget, in the instance options add
"enable_filter": {
"value": "true",
"displayValue": "true"
}
to your JSON
And you can add a filter the same way
"filter": {
"value": "^ORDERBYDESCsys_updated_on",
"displayValue": "filter"
},
For example, this is what mine looks like.
{
"enable_filter": {
"value": "true",
"displayValue": "true"
},
"table": {
"value": "u_slack_messages",
"displayValue": "field_name"
},
"filter": {
"value": "^ORDERBYDESCsys_updated_on",
"displayValue": "filter"
},
"orderBy": {
"value": "",
"displayValue": ""
},
"fields": {
"value": "u_sent_from,u_message,u_attachment,u_user_icon",
"displayValue": "u_sent_from,u_message,u_attachment,u_user_icon"
},
"window_size": {
"value": 10,
"displayValue": "10"
}
}
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2022 12:45 AM
Hi Rose,
Glad to see my answer helped you, Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep