The CreatorCon Call for Content is officially open! Get started here.

How can you edit a data table widget.

Danny Barker
Tera Contributor

Hello, 

I have a simple list widget on our Service Portal that displays Incidents.  I also have a My Tickets link on the header that shows the same thing.  I am able to choose in the settings the display field and secondary field as seen below in two screenshots.  

DannyBarker_1-1707860518825.png

 

DannyBarker_4-1707860722857.png

My question is that when the user selects View All in the bottom right corner, the columns are different as seen below.

DannyBarker_5-1707860813716.png

It looks like this list is a data table widget or it could be data table widget from URL definition. I cloned the data table  widget and looking at the script but I don't see were I can change these column options.  We want to remove "Priority" and add "Created on" and "State". Am I looking in the wrong place?

Any help would be greatly appreciated.

 

 

 

1 REPLY 1

James Chun
Kilo Patron

Hey @Danny Barker ,

 

The fields (display and secondary) in the Simple List are not equivalent to what you see on the 'View all' page.

In the Widget instance, an option called 'List page' specifies the page that users are redirected to by selecting 'View all'. By default, it will be the 'list' page which I believe you are using.

From the 'list' page, the columns that you see are from a list layout view. The value of the view needs to be specified in the URL parameter (i.e. view=default). You can test this by adding the parameter in the URL of the 'list' page.

e.g. 

{instance URL}/sp?id=list&table=incident&filter=opened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe^active=true^EQ&target_page_id=ticket&view=default

 

So to meet your requirement, you need to:

  1. Create a list layout view with the columns you need (i.e. Number, category, short description, created on, state)
  2. In the Widget Instance, modify the 'Filter' option by appending &view={your view name}. 

That should fix the issue, thanks!