Change the List Fields on a Data Table for Instance Definition

ritaaudi
Tera Contributor

Hi:

On the Service Portal, I can't seem to change the list fields:

find_real_file.png

If I ctrl right click, I get the following, which is for the incident table:

find_real_file.png

How can I configure the list fields for the project table?

Thank you!

1 ACCEPTED SOLUTION

Hi Rita,



I think I figured out how to configure this for the Data Table from URL Definition easily!



1. Go to the page where you have the Data Table from URL Definition widget (e.g. https://xxx.service-now.com/sp/?spa=1&table=pm_project&id=data_from_url&filter=&p=1&o=number&d=desc


2. Ctrl and right click and select Widget Options Schema


3. Click on the + icon to add a new option, and save the record.



Label:   Fields


Name:   fields


Type: string


Default Value: <comma separated list of fields>



4. Ctrl and right click to select Instance Options.   Here you should be able to see the configurable options for your widget instance.   Since we just added the Fields option, you can configure the fields you would like to display for this widget instance if you want to overwrite the default as set in the previous step.



Screen Shot 2017-05-31 at 8.31.48 AM.png


Screen Shot 2017-05-31 at 8.36.58 AM.png


Hope this helps!



Thanks,


Jenny



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


View solution in original post

7 REPLIES 7

ritaaudi
Tera Contributor

Hi Jenny: It worked! Only thing is I had to create a clone of Data Table from URL Definition for another table, because if you use the same Data Table from URL Definition, you end up with the same fields on both tables. Is that your understanding as well? Thank you SO much for your help!!!! Best regards, Rita


Hi Rita,



Glad it worked out for you!   I was able to use one widget only, set the Widget Option Schema, and create Widget Instances.   The field display can be configured for each instance by editing Instance Options.   It is a little confusing as to where to set the fields in Instance options.   But putting option definitions in the "Additional options, JSON format" field for the widget instance seems to work.



Thanks,


Jenny


Hi Rita,

You can also add the "Keyword Search" to Data Table from Instance Definition widget.

Just add in Server Script "show_keywords: true" inside " widgetParams" section.

 

Hope this helps!

 

Thanks,

Sudipta

Please Hit Helpful, depending on the impact of the response.