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

Ct111
Giga Sage

you want to display a data of a table , correct if I am not wrong.

So , why don't you use  this widget ( "Data table from instance definition widget"  ) and make it's copy 

and just select the appropriate table in that.

 

Mark my ANSWER as CORRECT and HELPFUL if it helps

I want to display the data table widget within an spModal, for which the Data table from instance definition widget wouldn't be suitable, so I use the core widget 'widget-data-table', however the data doesn't seem to display.

Did you find a solution. I just trying the same thing

Hi ,

Have you seen an example of how a button is embedded in SP modal in the simlar fashion

can you apply the same on your data table widget.

Check the below link for your reference

EXAMPLE