<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=utf-8">
<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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.v1msonormal, li.v1msonormal, div.v1msonormal
{mso-style-name:v1msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.v1msochpdefault, li.v1msochpdefault, div.v1msochpdefault
{mso-style-name:v1msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.v1msohyperlink
{mso-style-name:v1msohyperlink;}
span.v1msohyperlinkfollowed
{mso-style-name:v1msohyperlinkfollowed;}
span.v1e-mailformatvorlage17
{mso-style-name:v1e-mailformatvorlage17;}
p.v1msonormal1, li.v1msonormal1, div.v1msonormal1
{mso-style-name:v1msonormal1;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.v1msohyperlink1
{mso-style-name:v1msohyperlink1;
mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.v1msohyperlinkfollowed1
{mso-style-name:v1msohyperlinkfollowed1;
mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage26
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage27
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Good Morning Andreas<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thats what I did 2 weeks ago but I didn’t get a hint form there, so I tried the QGIS User group Mailing list.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">So I guess I have to bury myself in the API documentation …<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Guido<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Andreas Neumann [mailto:a.neumann@carto.net]
<br>
<b>Gesendet:</b> Montag, 12. Oktober 2020 17:05<br>
<b>An:</b> Häfliger Guido<br>
<b>Cc:</b> 'qgis-user@lists.osgeo.org'<br>
<b>Betreff:</b> Re: [Qgis-user] refresh conditional formatting in attribute table<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Hi Guido,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">You might get more replies on the
<a href="https://qgis.org/en/site/getinvolved/mailinglists.html">QGIS developer list</a> for PyQGIS related questions. See <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Andreas<o:p></o:p></span></p>
<p id="reply-intro"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">On 2020-10-12 16:37, Häfliger Guido wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm">
<div id="replybody1">
<div>
<div>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Hi<o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">I‘m developing a plugin which executes some updates of attributes on a loaded layer where are conditional formatting rules (full row) in the attribute table are defined.
I want to apply the conditional formatting rules after the table-updates by python. It works if I close and open the attribute table by pyqgis but I only manage to close the attribute table in dock view. My questions:<o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
<p class="v1msonormal" style="margin-left:36.0pt;text-indent:-18.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">-</span><span style="font-size:7.0pt">
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Is it possible to apply the conditional formatting rules by pyqgis without closing and opening the attribute table (loop over all rules and apply them)?<o:p></o:p></span></p>
<p class="v1msonormal" style="margin-left:36.0pt;text-indent:-18.0pt"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">-</span><span style="font-size:7.0pt">
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">How can I close an attribute table which is not in docked view by pyqgis?<o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">Thanks for your help in advance<o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">____________________________________________________</span><span style="font-size:7.5pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif""><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Dipl. Ing. ETH Guido Häfliger</span><span style="font-size:7.5pt;font-family:"Verdana","sans-serif""><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">EDV/GIS-Spezialist</span><span style="font-size:7.5pt;font-family:"Verdana","sans-serif""><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Tel. ++41 41 462 97 60</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><br>
</span><u><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:blue"><a href="mailto:guido.haefliger@vogelwarte.ch">guido.haefliger@vogelwarte.ch</a></span></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue"><br>
</span><u><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:blue"><a href="http://www.vogelwarte.ch/" target="_blank">www.vogelwarte.ch</a></span></u><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Schweizerische Vogelwarte | Seerose 1 | CH-6204 Sempach | Schweiz</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">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 </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><o:p></o:p></span></p>
<p class="v1msonormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""> <o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></span></p>
</div>
</blockquote>
<p><span style="font-size:10.0pt;font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
</div>
</body>
</html>