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 <[email protected]>
To: Andreas Neumann <[email protected]>, [email protected]
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 <[email protected]>
> To: [email protected]
> 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
>>> [email protected]
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> _______________________________________________
>> Qgis-user mailing list
>> [email protected]
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to