<div dir="ltr"><div>Andreas, <br></div><div><br></div><div>You could also use is_selected() it your refactor fields' expressions. <br></div><div><br></div><div>if( is_selected(), <new value>, <retain old value>)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 11, 2017 at 9:37 PM, Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p><br></p>
<p>Hi Mathieu,</p>
<p>If I run "Save selected features" before the rest of my model I also loose the whole context of widgets and relations, because it is a new virgin layer then with no link to the original layer configuration (widgets, relations) - right?</p>
<p>Thanks for your reply,</p>
<p>Andreas</p><div><div class="h5">
<p> On 2017-12-11 15:15, Mathieu Pellerin wrote:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="auto">You could use the "save selected features" algorithm in your model against the vector layer input.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Dec 11, 2017 21:10, "Andreas Neumann" <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi Mathieu,</p>
<p>Thanks for the information. Unfortunately I cannot use "Feature Source" as an input in my model.</p>
<p>Matthias told me that I have to use "Vector layer" as an input, because my model relies on certain features that aren't available on "feature source" inputs. I need to use refactor fields in a model with expressions support for relation_aggregates and represent_value (which requires information on widget configuration). </p>
<p>Is there any chance this checkbox could also be introduced for "Vector layer" inputs? Should I open an issue?</p>
<p>-------------------</p>
<p>I also find it quite confusing that the inputs come with zero documentation. I think for probably<span> </span>99% of the users who are not devs it isn't obvious when to use which input. Could we introduce a very simple tooltip that explains with 1 or 2 sentences what the input implies - esp. for the "Vector layer" vs. "Feature Source" vs. "Layer field" ?</p>
<p>Thanks,</p>
<p>Andreas</p>
<p>On 2017-12-11 15:01, Mathieu Pellerin wrote:</p>
<blockquote style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="auto">The global use only selected features option is gone (yay) in favor of a checkbox which can be activated on a per-use basis. I <span style="font-family:sans-serif">believe iterating through selected features only requires a vector source input.</span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Dec 11, 2017 20:57, "Andreas Neumann" <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p>
<p>In QGIS master (version 3), with a Vector Layer input, I am failing to find the option to run a processing model only on the selected features.</p>
<p>Can you please help me find the setting? I looked in the "Options" --> "Settings" --> "Processing" or watched out for a checkbox in the "Run model dialog" - but both did not show an option to restrict on selected features only.</p>
<p>Thanks for a hint,</p>
<p>Andreas</p>
</div>
<br>______________________________<wbr>_________________<br> QGIS-Developer mailing list<br> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noopener noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noopener noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></blockquote>
</div>
</div>
</blockquote>
<p><br></p>
</div>
</blockquote>
</div>
</div>
</blockquote>
<p><br></p>

</div></div></div>
</blockquote></div><br></div>