Service Portal Simple List View All

gaf627
Tera Expert

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!

1 ACCEPTED SOLUTION

LaurentChicoine
Tera Guru

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.


View solution in original post

17 REPLIES 17

Hi Marco,

very helpful and thanks!  One thing though...if I need to have multiple portals, each with their own set of columns for viewing incidents on a list page, it appears as though setting the "Mobile" this way makes all the portals show the same.  Do you know a way to specifically set the columns uniquely for multiple portals on the same instance?  

Hi @marcoamoruso ,

When i try to change the order in list element or include  a new list element , it is not capturing in update set.

How to solve this issue?

Thanks in advance!

Manikandan T
Giga Contributor

hi guys ,

 

i am using the requested item table ,i need to modify the view. but not able to do that .please help me on this