Data Table from Instance Definition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2016 09:25 AM
I see the following lines of code in Server Script code of the widget. What are available values for the view variable in this code,
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,
show_breadcrumbs: true
}
I'm trying to set a view other than what has been specified in OOB( view: 'sp' ) . How can I modify this value?
Regards,
Darshak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2017 02:33 AM
Hi Darshak,
I've been watching some training material regarding the new Service Portal and building Widgets, and as far as i have understood it, best practice if you need to modify a widget is to clone it and update values in the new widget.
- Go to Service Portal > Service Portal Configuration
- Choose Widget Editor
- Enter Data table from instance definition
- Press the widget menu in the top right corner and choose to Clone.
- Now you can input another view value in the Server Script
Hope this helps!
BR /Miriam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2017 06:55 AM