Where can I edit the My list filter widget?

Justine Mae Ruf
Tera Expert

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?
find_real_file.png
find_real_file.png

4 REPLIES 4

Vasantharajan N
Giga Sage
Giga Sage

Click on filter and then Click on "Advanced View" to update your filter.

find_real_file.png

Once you updated the filter click on the gear icon and click save to update your filter in your list.

find_real_file.png


Thanks & Regards,
Vasanth

Hi, Vasantharajan. Thanks for your advise but I think this is from Agent Workspace? I have to do it on the CSM portal

Community Alums
Not applicable

Hi @Justine Mae Rufo ,

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()"

find_real_file.png

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

Community Alums
Not applicable

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