Service Portal - Simple List - Incidents - View All

Steven Parker
Giga Sage

So I wanted to show "My Open Incidents" and "My Closed Incidents" to users on the Portal.   I created SImple List to do this, but I noticed if you click "View All" you get a screen where they can change the filter, click "New", and it has a Priority column, which we don't need.   How can I easily just remove those 3 things?   I am having a hard time with this because I can't edit this page for some reason in the portal.  

I have seen suggestions such as "In your client controller of your Data Table Widget:   $scope.options.show_new = false;", but I am not sure where to put this because if I edit the Widget I need to clone it to make changes, but then I can't figure out how to add my cloned widget to the page.

find_real_file.png


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

Step 1: You need to create a new page so that you can customize the removal of the 'New' button, remove the filter, and set your own display columns. You can leave the page blank for now.   We'll come back to this later.



Step 2: In the additional properties of your Simple List widget, you need to add/set the following option (in the Additional options, JSON format field) so that when you click on the 'View all' link, you are redirected to the page you created in Step 1.



  "list_page": {


  "value": "my_ticket_list",


  "displayValue": "My Ticket List"


  }



Step 3: You'll want to clone one of the Data Table widgets in order to remove the 'New' button, remove the filter, and set your own display columns.   The Data Table Widget threads talks about how to do this. Once you have your own version of the widget, place it on the page you created in Step 1.


View solution in original post

10 REPLIES 10

JennyHu
Tera Guru
Tera Guru

Hi Steven,



You should be able to use Service Portal Designer to drag and drop your newly cloned widget to your page.  



From your Application Menu, search for "Service Portal Configuration". It should bring you to this page below.   Click on Designer, and search for the page that you would like to add the newly cloned widget.



Screen Shot 2017-05-22 at 3.20.34 PM.png



Thanks,


Jenny


Nia McCash
Mega Sage
Mega Sage

Step 1: You need to create a new page so that you can customize the removal of the 'New' button, remove the filter, and set your own display columns. You can leave the page blank for now.   We'll come back to this later.



Step 2: In the additional properties of your Simple List widget, you need to add/set the following option (in the Additional options, JSON format field) so that when you click on the 'View all' link, you are redirected to the page you created in Step 1.



  "list_page": {


  "value": "my_ticket_list",


  "displayValue": "My Ticket List"


  }



Step 3: You'll want to clone one of the Data Table widgets in order to remove the 'New' button, remove the filter, and set your own display columns.   The Data Table Widget threads talks about how to do this. Once you have your own version of the widget, place it on the page you created in Step 1.


Thank you for this information.   I got it working, but noticed 2 things:



1) The title "Incidents" would flash "My Closed Incidents" briefly and then change to "Incidents".


2) I don't see where to remove the "filter" from the list and don't see anywhere in the code where it stands out to remove it.


find_real_file.png



Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Have you done step 3? Which of the 4 OOB Data Table widgets did you clone?



From the Data Table Widget thread that I referenced, I found that I needed to clone 'Data Table from Instance' and also the embedded/referenced 'Data Table' widgets to get the title working.   The title issue is in the 'Data Table' widget.



If you only cloned the 'Data Table from Instance' widget, then you should be able to remove the filter by changing the line


show_breadcrumbs: true


to


show_breadcrumbs: options.show_breadcrumbs <-- this passes on the option set in your widget instance configuration