Why can't I embed the widget-data-table widget into an spModal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 03:00 AM
var modalOptions = {
title: 'Table',
widget: 'widget-data-table',
widgetInput: {
"table": "incident",
"filter": "activeEQtrue"
}
};
spModal.open(modalOptions).then(function(response) {});
I'm using the above code to display an spModal however the widget-data-table widget is not displaying properly, does anyone have any suggestions what needs to be changed for it to display?
Labels:
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 12:01 PM
You will need to clone the Data Table from Instance from widget and change the server script to something like this:
Also add this to the controller script:
Not the 'shared' object in the options? We pass this to the widget when we set the spModal properties: