<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Ujaval,</p>
<p>Thanks for the "hacky" idea ;-)</p>
<p>I am happy to report that it worked for me.</p>
<p>For the long run, it would be good to have an algorithm to extract a string from an attribute of a selected feature (something like attribute(get_feature(expression_to_get_feature),attribute) ) or at least an "Expression Executor" that outputs a string. Expressions can do a lot, but getting a string output from an Expression seems to be impossible.</p>
<p>Anyway, I can progress now with the rest of my model.</p>
<p>Thanks again,</p>
<p>Andreas</p>
<p id="reply-intro">On 2020-08-11 10:15, Ujaval Gandhi wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<div dir="ltr">I can think of a slightly hacky way. Use the 'Basic Statistics for Field' algorithm, and since your field will have a single value, use either the Minimum or Maximum value output from it (works for string fields too) as the parameter for another algorithm.<br clear="all" />
<div>
<div class="v1gmail_signature" dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div> </div>
<div>
<table style="border-spacing: 0px; border-collapse: collapse; color: #444444; width: 480px; font-size: 10pt; font-family: Arial,sans-serif; line-height: normal;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 10px 0px 12px; width: 160px; vertical-align: top;" valign="top"><a style="background-color: transparent; color: #337ab7;" href="https://spatialthoughts.com/" target="_blank" rel="noopener noreferrer"><img style="border: 0px; vertical-align: middle; width: 141px; height: auto;" src="cid:15971356655f325b3121605205470286@carto.net" alt="Logo" width="141" border="0" /></a></td>
<td style="padding: 6px 0px; width: 320px;">
<table style="border-spacing: 0px; border-collapse: collapse; background-color: transparent;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0px; font-size: 12pt; font-family: Arial,sans-serif; font-weight: bold; color: #3d3c3f;"><span style="color: #00afef;">Ujaval Gandhi</span></td>
</tr>
<tr>
<td style="padding: 0px 0px 11px; font-size: 10pt; font-family: Arial,sans-serif; color: #3d3c3f;"><span style="color: #00afef;">Spatial Thoughts</span></td>
</tr>
<tr>
<td style="padding: 0px; font-size: 10pt; font-family: Arial,sans-serif; color: #9b9b9b;"><span>mobile: +91-8095684687</span></td>
</tr>
<tr>
<td style="padding: 0px; font-size: 10pt; font-family: Arial,sans-serif; color: #9b9b9b;"><span>email: </span><span style="color: #1793d2;"><a href="mailto:ujaval@spatialthoughts.com" rel="noreferrer">ujaval@spatialthoughts.com</a></span></td>
</tr>
<tr>
<td style="padding: 6px 0px 0px;"><span style="display: inline-block; height: 22px;"><span><a style="background-color: transparent; color: #337ab7;" href="https://www.linkedin.com/in/spatialthoughts/" target="_blank" rel="noopener noreferrer"><img style="border: 0px; vertical-align: middle; height: 20px; width: 20px;" src="cid:15971356655f325b3121605205470286@carto.net" alt="LinkedIn icon" width="23" height="23" border="0" /></a>  </span><span><a style="background-color: transparent; color: #337ab7;" href="https://twitter.com/spatialthoughts" target="_blank" rel="noopener noreferrer"><img style="border: 0px; vertical-align: middle; height: 20px; width: 20px;" src="cid:15971356655f325b3121605205470286@carto.net" alt="Twitter icon" width="23" height="23" border="0" /></a>  </span></span></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 8px 0px 0px; border-top: 1px solid #1793d2; width: 480px; font-family: Arial,sans-serif; color: #9b9b9b; text-align: justify;" colspan="2"><span>Subscribe to our newsletter <a href="http://bit.ly/spatialthoughts-newsletter" target="_blank" rel="noopener noreferrer">http://bit.ly/spatialthoughts-newsletter</a></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="v1gmail_quote">
<div class="v1gmail_attr" dir="ltr">On Tue, Aug 11, 2020 at 1:23 PM Andreas Neumann <<a href="mailto:a.neumann@carto.net" rel="noreferrer">a.neumann@carto.net</a>> wrote:</div>
<blockquote class="v1gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>Hi,</p>
<p>In a model I aggregate values to a single feature. Then I would like to extract a specific aggregated attribute to a string so I can use it as the input parameter of another algorithm.</p>
<p>I fail to find a way to do that. Aggregation works fine, string concatenation as well, but I fail to find a way to extract an attribute of a single feature to a string.</p>
<p>Any ideas?</p>
<p>I'm on QGIS 3.10, but if necessary I could also use a newer QGIS version.</p>
<p>Thanks,</p>
<p>Andreas</p>
</div>
_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</div>
</div>
</blockquote>
<p><br /></p>

</body></html>