<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I execute the following code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        selected_feature = layer.selectedFeatures()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        layer.startEditing()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        for feature in selected_feature:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                            feature["focus"] = 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                            layer.updateFeature(feature)    
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                            <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        layer.commitChanges()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The update of the values works  fine, the opened attribute table shows the new attribute values but the conditional formatting in the attribute table (full row) is not applied to the updated features if only one feature
 is selected. If selected_features contains several features, the conditional formatting works except for the first selected feature, so it is not correct.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The refresh of conditional formatting works perfectly if the conditional formatting is field based (rule un field focus). The full row conditional formatting is only applied correctly if I close and reopen the attribute
 table. Is this a bug in full row based conditional formatting or do I have to use another method to update the attributes? Exist a workaround to force the refresh of conditional formatting full row rules on a opened attribute table?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for your help in advance<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Guido<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">____________________________________________________</span><span style="font-size:7.5pt;mso-fareast-language:DE-CH">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;mso-fareast-language:DE-CH"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">Dipl. Ing. ETH Guido Häfliger</span><span style="font-size:7.5pt;mso-fareast-language:DE-CH"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">EDV/GIS-Spezialist</span><span style="font-size:7.5pt;mso-fareast-language:DE-CH"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">Tel. ++41 41 462 97 60</span><span style="mso-fareast-language:DE-CH"><br>
</span><u><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:DE-CH"><a href="mailto:guido.haefliger@vogelwarte.ch"><span style="color:blue">guido.haefliger@vogelwarte.ch</span></a></span></u><span style="color:blue;mso-fareast-language:DE-CH"><br>
</span><u><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:DE-CH"><a href="http://www.vogelwarte.ch/"><span style="color:blue">www.vogelwarte.ch</span></a></span></u><span style="mso-fareast-language:DE-CH"><br>
</span><span style="font-family:"Arial","sans-serif";mso-fareast-language:DE-CH"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">Schweizerische Vogelwarte | Seerose 1 | CH-6204 Sempach | Schweiz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";mso-fareast-language:DE-CH">Station ornithologique suisse | Seerose 1 | CH-6204 Sempach | Suisse
<br>
Stazione ornitologica svizzera | Seerose 1 | CH-6204 Sempach | Svizzera <br>
Swiss Ornithological Institute | Seerose 1 | CH-6204 Sempach | Switzerland <o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>