Hide the header and footer of the detail rows

Stimulsoft Reports.JS discussion
Post Reply
lxfst
Posts: 3
Joined: Fri Feb 10, 2017 2:23 am

Hide the header and footer of the detail rows

Post by lxfst »

Hi, i've made a master-detail report. The master databand has multiple detail databands. Each databand has its header band and footer band.
How to hide the header and footer of the details when some of the detail have no data?
I mean, when one of the detail has no any data, it will not display, but its header and footer still display. How can i hide them?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide the header and footer of the detail rows

Post by Alex K. »

Hello,

Please try to set the PrintIfEmpty property to false.

Thank you.
lxfst
Posts: 3
Joined: Fri Feb 10, 2017 2:23 am

Re: Hide the header and footer of the detail rows

Post by lxfst »

I've tried, but it doesn't work
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide the header and footer of the detail rows

Post by Alex K. »

Hello,

Please send us a simple report with test data for analysis.

Thank you.
lxfst
Posts: 3
Joined: Fri Feb 10, 2017 2:23 am

Re: Hide the header and footer of the detail rows

Post by lxfst »

Test data(data.json):
{ "id": 1, "text": "master", "detail": [{ "title": "d1", "text": "text for d1", "remark": "remark for d1" }] }
and then i set the "detail" data to be empty like this:
{ "id": 1, "text": "master", "detail": [] }

but the detail databand's header and footer are still displayed, even if the "print if empty" property is set to be false.
Attachments
test_20170213.mrt
(4.64 KiB) Downloaded 151 times
data.json
(110 Bytes) Downloaded 150 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide the header and footer of the detail rows

Post by Alex K. »

Hello,

We need some time to check the issue.
We will let you know about the result.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide the header and footer of the detail rows

Post by HighAley »

Hello.

We have reproduced the issue.
We need some time for analysis of the issue.

Thank you.

Ticket reference: #3728
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide the header and footer of the detail rows

Post by HighAley »

Hello.

There is a Print If Empty property of the Header and Footer bands.
You should disable them.

Thank you.
Post Reply