Page 1 of 1

Empty data in data band is not working (SOLVED)

Posted: Wed Aug 24, 2016 10:03 am
by terje.pedersen
Using a data band its working great if I have data to display but when the datasource is like "Items": [] only a table header above the data band is shown and nothing else, if I change to "Items": [{}] everything works as normal again but as exptected with a zero line.

Re: Empty data in data band is not working

Posted: Wed Aug 24, 2016 10:27 am
by terje.pedersen
"items":[]
missing-data-in-report.png
missing-data-in-report.png (4.59 KiB) Viewed 4924 times
"items":[{}]
with-zero-line.png
with-zero-line.png (24.51 KiB) Viewed 4924 times

Re: Empty data in data band is not working

Posted: Thu Aug 25, 2016 8:25 am
by HighAley
Hello.

Could you send us your report template with sample data for analysis?

Thank you.

Re: Empty data in data band is not working

Posted: Thu Aug 25, 2016 10:52 am
by terje.pedersen
I have made a minified version of it and added it as an attachment to this post.

Load this as dataset:

Code: Select all

{"customerinvoice": {"Items": [{"ItemText":"The Best Product"}]}, "companysettings": {"CompanyName": "Test Company"}}
It should now look like this:
With Items
With Items
dataset1.png (6.85 KiB) Viewed 4915 times
Replace content in json file with:

Code: Select all

{"customerinvoice": {"Items": []}, "companysettings": {"CompanyName": "Test Company"}}
It should now look like:
Empty Items
Empty Items
dataset2.png (2.6 KiB) Viewed 4915 times

Re: Empty data in data band is not working

Posted: Fri Aug 26, 2016 1:53 pm
by Alex K.
Hello,

You data for the DataBand is empty, please try to set the PrintIfEmpty property for the Header to true.

Thank you.

Re: Empty data in data band is not working

Posted: Mon Aug 29, 2016 6:56 am
by terje.pedersen
Ah I see, the header is automatically connected and not showing by default.

Re: Empty data in data band is not working (SOLVED)

Posted: Mon Aug 29, 2016 3:40 pm
by HighAley
Hello.

Did you solve your issue?
Let us know if you need additional help.

Thank you.