# Filtering Relationship Choice by Row ID

**URL:** <https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159>\
**Category:** Ask for Help\
**Created:** [November 29, 2022, 10:33am UTC](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159 "2022-11-29T10:33:20Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [December 1, 2022, 8:19am UTC](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159/21 "2022-12-01T08:19:47Z")

</div>

Thanks, I’ll raise it as a bug.  
This app reproduces the problem(s), demonstrates a workaround and uses the traditional way of “Write to” the foreign key column rather than the Relation.

> **[Filter by Row ID](https://filter-by-row-id-zd6f.glideapp.io)**
>
> Filter by Row ID does not appear to work in a self-referential structure.\\n\\nReproduced in a modified version of the Things template app.\\n\\nThings have Row IDs.\\n\\nThings can contain three other things but must not contain themselves.\\n\\nChoice for...

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/2/82263a24442d260335692e658308fc23387d0a2c.png)

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [December 1, 2022, 8:28am UTC](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159/22 "2022-12-01T08:28:21Z")

</div>

> [@Filtering Relationship Choice by Row ID in Self-Referential Hierarchy Does Not Work](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id-in-self-referential-hierarchy-does-not-work/55284):
>
> Continuing the discussion from [Filtering Relationship Choice by Row ID](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159/14): This app demonstrates the problem(s) and a workaround: Filter by Row ID does not appear to work in a self-referential structure. Reproduced in a modified version of the Things template app. Things have Row IDs. Things can contain three other things but must not contain themselves. Choice for the 1st thing is filtered by Name. Choice for the 2nd thing is filtered by a Row ID Choice for the 3rd thing is filtered by a…

---

<div class="post-metadata">

**Author:** ![MattJP](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattjp/32/47532_2.png) [@MattJP](https://community.glideapps.com/u/MattJP)\
**Post date:** [December 1, 2022, 8:30am UTC](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159/23 "2022-12-01T08:30:54Z")

</div>

In the original description of the WORKAROUND, Step 2 should read “correctly filtered”, not, “correctly not filtered”.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 2, 2022, 8:31am UTC](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159/24 "2022-12-02T08:31:27Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

[Previous page](https://community.glideapps.com/t/filtering-relationship-choice-by-row-id/55159.md?page=1)
