Why can't I embed the widget-data-table widget into an spModal

Jack Littlewort
Giga Guru
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?

find_real_file.png

5 REPLIES 5

Jeff66
Kilo Contributor

You will need to clone the Data Table from Instance from widget and change the server script to something like this: 

find_real_file.png

Also add this to the controller script:

find_real_file.png

 

Not the 'shared' object in the options? We pass this to the widget when we set the spModal properties: 

find_real_file.png