Why can't I embed the widget-data-table widget into an spModal
- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 03:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 03:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2020 12:59 AM
Did you find a solution. I just trying the same thing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2021 08:31 PM
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