<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,</p>
<p>I created a feature request at <a href="https://github.com/qgis/QGIS/issues/51116">https://github.com/qgis/QGIS/issues/51116</a></p>
<p>The parameters need to be discussed ...</p>
<p>Andreas</p>
<p id="reply-intro">On 2022-12-05 00:54, Nyall Dawson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On Wed, 30 Nov 2022 at 00:06, Andreas Neumann via QGIS-Developer<br /><<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Hi,<br /><br />I am looking for a way to find out the internal id of a related layer with a QGIS expression.<br /><br />@id and $id only work directly on the feature of the source layer, but not on related layers.<br /><br />attributes(<br />   get_feature(<br />      'Other Related Layer',<br />      't_id',<br />      fkey_value<br />   )<br />)<br /><br />doesn't contain the internal id of the other layer ...<br /><br />Any ideas how to get access to internal ids of other layers?</blockquote>
<br />This is indeed a silly limitation -- we need a "feature_id(...)"<br />expression function!<br /><br />Can you file a feature request for this?<br /><br />Nyall<br /><br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />Thank you and greetings,<br /><br />Andreas<br /><br />_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">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>
</blockquote>
<p><br /></p>

</body></html>