My Requests Widget Change

Sam Ogden
Tera Guru

Hi All,

I've added the 'My Requests' widget to the service portal that I am configuring.   When it reaches the display limit it just displays the following message:
'First 5 of 48 shown', On the simple list widget it gives the option to 'view all' and then takes you to a table view to see all the logs.   How can something similar be added to the 'My Requests' widget?

find_real_file.png

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

Hi Sam,



I would suggest that you go to Widget Instances, Open the widget instance for My Incidents and change the following fields



Title: My Requests


Table: Requested Item


Filter: Active is true and other filters as required



Perform an Insert and Stay, This has created a new instance of simple list that you could add on your portal


find_real_file.png




Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


View solution in original post

13 REPLIES 13

If you want all rows then comment 2nd and 3rd row. Because your code says, if you there is not value in maximum entry then it will take 10 as maximum entry.


Hi Ujjawal,



I Understand how I could show all the records in the widget as per your above comment.   However this is not how I require this to work.


I want the widget to show the first 10 records and then display a message at the bottom 'First 10 of 58                                                         View all',   With the View all being a linkto another page showing all the records, alternatively the message at the bottom 'First 10 of 58 < >'   with the arrows toggleing to the next 10 records?



I hope this makes sense, not sure how else to explain



The reason I am using the My request widget rather than the simple list widget (which would do the view all link as I need) is that I want to display the title of the request, but this is held on the RITM and not the request.   My other alternative would be if you could advise how I could display this RITM title on the simple list widget, in the same way that the My requests widget does.



Thanks


Hi Sam,



The My Incidents is a simple list widget. The following lines are missing in My request widget HTML which is preventing the display of View all. You can either take a copy of Simple list widget and change it to one that displays my requests or copy these lines into the request widget after comparing it with the simple list widget.


find_real_file.png


find_real_file.png



Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


Hi Alikutty,



I had tried this earlier, but ran into the following issues:



the 'view all' text is not aligned correctly:



find_real_file.png




Also when you click 'view all' it is taking me to the below page rather than a list view of all the requests



find_real_file.png


find_real_file.png


Hi Alikutty,



I've managed to sort the alignment issue.   Just need to understand what I need to add to the code so it sends it to the correct table when view all is selected.



Any help is greatly appreciated.