How can I set the view to use when opening records from Service Portal View All list

Ellie2
Kilo Expert

Hi All

I have a Instance of Simple List widget in my SP and I configured it to use Service Portal view for the list of records initially displayed but when I click on View All and then open a record from that list the default view is used and I cannot find where/how to set it to use the service portal view.

Any suggestions greatly welcome!

2 REPLIES 2

Mark Guldhammer
Giga Guru

Hi

You need to add "sysparm_view%3Dyour-view-name" to the View All link. If you hover over it, you can see is missing from the URL. You can see this in action if you open up an incident record, the see the url gets updated when you switch the view.

 

To fix this, I suggest you clone the simple list widget, and change the View All link (3. line from the bottom) to your needs. I think this should work:

<a class="pull-right" ng-href="?id={{c.seeAllPage}}&table={{c.options.table}}&filter={{c.options.filter}}{{c.targetPageID}}&sysparm_view=your_view_name" aria-label="{{::data.viewAllMsg}} - {{::c.options.title}}">${View all}</a>

 

Mark Guldhammer
Giga Guru

Hi

 

When I click the link in the Simple List widget, I am are sent to another service portal page with "Data Table from URL Definition" widget. Are you ending up on a record in the backend? If you are, you probably just need to add "&sysparm_view=my_view" to the link url.