[Qgis-developer] What does mean "empty tables" in "attribute table" item properties in a print composer?

Nyall Dawson nyall.dawson at gmail.com
Thu Oct 9 04:28:46 PDT 2014


On 9 October 2014 08:53, Junior Delaz <delazj at gmail.com> wrote:
> Thanks Nyall. This is what I suspected.
> Then, none of the "empty tables" options should work on the frames in the
> example above, right?
> But actually, "Draw empty cells" option does have effect on them. Isn't it a
> bug?

Well - possibly it's a little inconsistent, but I think this behaviour
is desirable. If you're wanting to show empty cells, I think you'd
also want to show them when the table is partially filled, rather than
only when it's totally empty.

Nyall

>
> 2014-10-08 22:33 GMT+02:00 Nyall Dawson <nyall.dawson at gmail.com>:
>>
>>
>> On 08/10/2014 10:20 pm, "Junior Delaz" <delazj at gmail.com> wrote:
>> >
>> > Hi all,
>> > I try to understand the use case of empty tables in print composer and
>> > am still confused.
>> >
>> > Create a new print composer and add an attribute table item
>> > set its height enough to show more rows than the maximal values of
>> > features you set.
>> > Add a second frame to this item.
>> >
>> > Is this second frame considered as "empty table" (as no feature
>> > attribute will be displayed inside)?
>>
>> No. This behavior only triggers when the entire table is empty. It is
>> designed for atlas prints, where the table's contents are being filtered by
>> the atlas. In this scenario it's possible that no records match the filter
>> for a particular atlas feature and you need to handle empty tables.
>>
>> Nyall
>
>


More information about the Qgis-developer mailing list