
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2016 01:46 PM
I'm using a simple list widget to display the logged in user's open requests (these are actually record produced tasks). The list displays perfectly and I've set the limit to 10. After 10, it displays View All. When I click View All, it displays a different list with columns that we don't want displayed. Any idea, how to edit the list of columns? I've tried changing the view on the widget instance to default view and self service to match the backend views, but this does not make a difference. Any help would be appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2016 07:19 PM
Hi Greg,
I took a quick look at the list page with the "Data Table from URL Definition" widget. I was unable to find where the default columns are defined.
However, you can specify a specific view to use when using the "Data Table from URL Definition" widget. From there, you have two options (both requires cloning and modifying an OOTB widget).
1. Update the "Data Table from URL Definition" widget to use a default view of your choosing. In the server script, replace the following line:
data.view = $sp.getParameter('view');
with
data.view = $sp.getParameter('view') || 'default';
I did put default (which will use the default view in the system) but you could use "ess" or something else. That way if no view is specified as a parameter, this view will be used instead of the view that I can't find where it is defined.
Then, update the list page with the page editor to replace the OOTB widget with the new cloned widget.
2. Update the "Simple List" widget to pass a default view when pressing on "View All". In the client script, add the view parameter to the see all function:
this.seeAll = function(){
$location.search({
id: c.options.list_page_dv || 'list',
table: c.options.table,
filter: c.options.filter,
view: c.options.u_view || 'default' //Setup an option for your custom Simple list if you want to be able to specify the view in the widget instance
});
};
Then, update your page that are using the Simple List with the page designer to replace the OOTB widget with the new cloned widget.
Personally, I have a preference for the second option which would allow you to setup a new option that will chose the selected view for each widget instance. To do so, simply create a new field with the column name "u_view" on the "sp_instance_vlist" table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2016 07:19 PM
Hi Greg,
I took a quick look at the list page with the "Data Table from URL Definition" widget. I was unable to find where the default columns are defined.
However, you can specify a specific view to use when using the "Data Table from URL Definition" widget. From there, you have two options (both requires cloning and modifying an OOTB widget).
1. Update the "Data Table from URL Definition" widget to use a default view of your choosing. In the server script, replace the following line:
data.view = $sp.getParameter('view');
with
data.view = $sp.getParameter('view') || 'default';
I did put default (which will use the default view in the system) but you could use "ess" or something else. That way if no view is specified as a parameter, this view will be used instead of the view that I can't find where it is defined.
Then, update the list page with the page editor to replace the OOTB widget with the new cloned widget.
2. Update the "Simple List" widget to pass a default view when pressing on "View All". In the client script, add the view parameter to the see all function:
this.seeAll = function(){
$location.search({
id: c.options.list_page_dv || 'list',
table: c.options.table,
filter: c.options.filter,
view: c.options.u_view || 'default' //Setup an option for your custom Simple list if you want to be able to specify the view in the widget instance
});
};
Then, update your page that are using the Simple List with the page designer to replace the OOTB widget with the new cloned widget.
Personally, I have a preference for the second option which would allow you to setup a new option that will chose the selected view for each widget instance. To do so, simply create a new field with the column name "u_view" on the "sp_instance_vlist" table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 08:07 AM
Thanks Laurent for the quick response. This helps and I will mark your response as a correct answer. I guess I was hoping it would something as simple as the View field or List page on the Simple List widget. I'm not sure what those fields are for and the documentation is not helpful at all.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 10:21 AM
Hi Greg,
I'm not sure to be following you with the "View field", are you referring to the "Display field" and "Secondary fields"? If yes, these seems to be specific to the Simple list.
However, I did not look at the "List page" at the time of my answer. I thought this property could allow you to avoid customizing the OOTB widget. You could have created specific pages using the "Data Table" widget. However, when I tried this when specifying fields in the widget instance, these fields had no impact on the column rendered in the widgets. So I guess your only option is to go custom, but maybe there is another way I don't know.
Official documentation for the Service Portal is really a huge flaw. A lot of things have to be found by reverse engineering.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2016 11:16 AM