I want a table to be searchable by an ID, which is not the primary ID. However my database returns this ID column as a JSON object which looks like this:
{ "$ref": "chats/QVxMsOh3Qz1vied7IXyl" }
I have set the search term for the table as:
{{ textInput2.value }}
When I search for the ID (QVxMsOh3Qz1vied7IXyl in this case), the table doesn't show the relevant entry, but instead shows empty. The same happens when I convert the JSON to a string (via table editor -> column -> format) and then search for the exact string. Maybe the {} are messing up the search query?
How can I get this to be searchable? How can I just show the ID part that's inside the JSON object as a string in the table?
I'm new to retool, so I'm sure there's a good way to do this that I'm missing. Thank you for your help!