Get Free Trial

Update from 2.7 to 2.8 – setReport blanks grid – no message

Brendan Fry asked on May 20, 2020

This is not a question but may help others.
I was testing updating to 2.8 from our current 2.7 and when I load a previously saved report (only structure – no data).
Previously I was informed when saving a report to do
var layout = _flexMonster.getReport(); = [];
However now before setReport you need to 
or you get a blank report with no warnings/messages.

2 answers

Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 21, 2020

Thank you for sharing your observations on our forum.
Our team would like to kindly draw your attention to the showEmptyData property of the options object.
It defines the component’s behavior in case of an empty data source. Flexomontser handles the empty data in two ways:

  • when showEmptyData is set to true, the component will show an empty grid and trigger a dataerror event for an empty CSV/JSON file, a JSON file with an empty array, or an empty inline JSON array. For an empty CSV data source with the defined header, the component will show the slice with empty data cells.
  • when showEmptyData is set to false, the component will show a message “Data source is empty” and trigger a dataerror event for all mentioned types of the empty data source.Default value: true.

Please see an example demonstrating usage of the mentioned property.
More about the options object and its properties can be found in our documentation.
Do not hesitate to contact us in case additional questions occur.
Kind regards,

Brendan Fry May 21, 2020

Thanks for the info.

This question is now closed