[Qgis-user] How do I update attribute values in a composer attribute table?

David Gessel gessel at blackrosetech.com
Thu Sep 28 01:50:31 PDT 2017


Created bug  #17212 for this problem and  #17213 for a possibly related issue also with composer (but one that has a work around).

https://issues.qgis.org/issues/17212

https://issues.qgis.org/issues/17213

-------- Original Message --------
Subject: Re: [Qgis-user] How do I update attribute values in a composer attribute table?
From: David Gessel <gessel at blackrosetech.com>
To: Andreas Neumann <a.neumann at carto.net>, qgis-user at lists.osgeo.org
Date: Wed Sep 27 2017 22:19:02 GMT+0300 (AST)

> I don't have other versions, but I'm happy to submit a bug report.  
> 
> I'll see if I can generate a wee project that reproduces the behavior.
> 
> hmmm... I tried adding a new attribute table and it came up without data and crashed
> 
> I enabled "ulimit -c unlimited" and started from the command line.  I see these errors:
> 
> Warning: QObject::connect: Incompatible sender/receiver arguments
>         QgsComposerItemComboBox::itemChanged(QgsComposerItem*) --> QgsComposerAttributeTableWidget::composerMapChanged(const QgsComposerItem*)
> 
> restarting I couldn't get it to crash, but the new attribute table also has stale data.
> 
> -------- Original Message --------
> Subject: Re: [Qgis-user] How do I update attribute values in a composer attribute table?
> From: Andreas Neumann <a.neumann at carto.net>
> To: qgis-user at lists.osgeo.org
> Date: Wed Sep 27 2017 17:58:40 GMT+0300 (AST)
> 
>> Hi David,
>>
>> This sounds like a bug to me. I haven't seen this behavior in my own projects.
>>
>> Did you check with other (non KML) data sources if they behave the same?
>>
>> You shouldn't have to delete any items in print composer to get them to update. A simple redraw should do it, normally. Can you please submit a bug report and provide a reduced project to demonstrate the issue?
>>
>> Do you have other QGIS versions at hand to test if this works in other versions? E.g. a nightly/weekly of QGIS master (2.99)?
>>
>> Thanks,
>> Andreas
>>
>> On 27.09.2017 14:08, David Gessel wrote:
>>> I have a configured an attribute table in a print composer, it pulls values from an imported (GE) KML layer, "name" and "description" (and lat/lon). These display nicely. But I updated the values in GE and these updates are not reflected in the attribute table. I've pressed the "refresh table data" button and the "refresh view" button (many times) and even restarted to no avail.
>>>
>>> Looking at the values for the field values in Print Composer->Attributes->Expression Dialog window, I get an old, not refreshed list.
>>>
>>> While looking at the same data via the label tool in map mode Map->Layer->Properties->Label With->Expression Dialog (not composer mode), I see the correct, current values.
>>>
>>> I'd think the table data should update both in map mode and in composer mode, but barring that, is there a way to update the attribute table in composer? Do I need to delete all tables and recreate them every time the underlying field values change to get them to update?
>>>
>>>
>>> I also posted this question to https://gis.stackexchange.com/questions/256761/how-do-i-update-attribute-values-in-a-composer-attribute-table
>>>
>>> with screen shots.
>>>
>>> Thanks,
>>> David
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 



More information about the Qgis-user mailing list