<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Jurg,</p>
<p>you need to make an array first, your statement should be:</p>
<p>"id_alpperimeter" IN <span style="
font-family:'Lato,Ubuntu,Lucida Grande,Segoe
UI,Arial,sans-serif'; font-weight:600; color:#0a6099;">string_to_array(</span>(aggregate(
layer:='alpperimeter20190607152251688', aggregate:='concatenate',
expression:= "pk" , filter:=selected = '1', concatenator:=concat(
char(39), char(44), char(39)))))</p>
<pre class="moz-signature" cols="72">Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
*********************************************
Das WhereGroup-Team wünscht Ihnen ein frohes
Weihnachtsfest und ein glückliches Jahr 2020!
*********************************************
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany
Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11
<a class="moz-txt-link-abbreviated" href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885</pre>
<div class="moz-cite-prefix">Am 16.12.2019 um 14:54 schrieb Jürg
Lindauer:<br>
</div>
<blockquote type="cite"
cite="mid:90ebec2b407741839fedb45cb3a44073@sz.ch">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
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]-->
<div class="WordSection1">
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to create a rule based symbology
with<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">"id_alpperimeter" IN (aggregate(
layer:='alpperimeter20190607152251688',
aggregate:='concatenate', expression:= "pk" , filter:=selected
= '1', concatenator:=concat( char(39), char(44), char(39))))<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But there are no results in there.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The rule based Symbology is ok, when i
write the list directly:<o:p></o:p></p>
<p class="MsoNormal">"id_alpperimeter" IN (‘<span
style="color:black;mso-fareast-language:DE-CH">258eef41-8120-45a5-a3d9-6ceae1e98e42’,
‘a882577f-eee2-4191-aa3b-2c4635bac70b’)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH">The aggregate
function alone gives me the expected list:<o:p></o:p></span></p>
<p class="MsoNormal">aggregate(
layer:='alpperimeter20190607152251688',
aggregate:='concatenate', expression:= "pk" , filter:=selected
= '1', concatenator:=concat( char(39), char(44), char(39)))
Result: ‘<span style="color:black;mso-fareast-language:DE-CH">258eef41-8120-45a5-a3d9-6ceae1e98e42’,
‘a882577f-eee2-4191-aa3b-2c4635bac70b’<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH">What i’m
doing wrong? Isn’t possible to connect the ‘IN’ Operator
with the aggreagte Function?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH">I’m using
QGIS 3.4.11<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:black;mso-fareast-language:DE-CH">Regards,
Juerg Lindauer<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Amt für Landwirtschaft<o:p></o:p></p>
<p class="MsoNormal">Abt. Agrarmassnahmen und Bodenrecht<o:p></o:p></p>
<p class="MsoNormal">Hirschistrasse 15<o:p></o:p></p>
<p class="MsoNormal">Postfach 5182 <o:p></o:p></p>
<p class="MsoNormal">6431 Schwyz<o:p></o:p></p>
<p class="MsoNormal">Telefon: 041 819 15 17<o:p></o:p></p>
<p class="MsoNormal">E-Mail: <a
href="mailto:juerg.lindauer@sz.ch" moz-do-not-send="true"><span
style="color:#0563C1">juerg.lindauer@sz.ch</span></a><o:p></o:p></p>
<p class="MsoNormal">Internet: <a
href="http://www.sz.ch/landwirtschaft"
moz-do-not-send="true"><span style="color:#0563C1">www.sz.ch/landwirtschaft</span></a>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
</body>
</html>