How do I change the Title for a data table instance widget

tricial
Giga Contributor

How do I change the data table label in the data table instance widget

Anything I try is not working.

The Configuration Title is not working when I set the title on the widget instance

I tried cloning the widget and using an option schema for title but I still cannot get it to work.

Any help please?

Also there does not seem to be much help out there on customizing and using widgets

Any links and reference/tutorials/youtubes out there that will speed up this learning curve would be greatly appreciated.

Thank you

Tricia

8 REPLIES 8

dvp
Mega Sage
Mega Sage

Did you try using Data table from instance definition widget?


sachin_namjoshi
Kilo Patron
Kilo Patron

Hi,



Please navigate to Service Portal > Service Portal Configuration and open up the Designer or the platform view of the Widget Instance.


Navigate to your   page and modify the Widget Instance Options by providing a title to the widget.



Service Portal: getting familiar with advanced widget options



Regards,


Sachin


Ok maybe I did not explain correctly.


I cloned the data table from instance widget


Server Script (snipit) has


var gr = new GlideRecordSecure(data.table);


  if (!gr.isValid()) {


  data.invalid_table = true;


  data.table_label = data.table;


  return;


  }


  data.table_label = gr.getLabel();



  var widgetParams = {


  table: data.table,


  fields: data.field_list,


  o: data.o,


  d: data.d,


  filter: data.filter,


  window_size: data.window_size,


  view: 'sp',


  title: options.title,



html has



I created a schema option for title . title: options.title,



how do I now use that as the title and not the data.table name I am using to look up the data from?


Hi Patricia,



Did you ever get around this? I am facing the same issue.



Thanks


Harry