Oct 31, 2018 10:04 AM
I’ve been having an issue where I’m getting an error and unable to figure out, how to go about it, when I’m trying to match a linked field such as
Linked Field Column
ABC, CDE
AB, DEF
Which filterbyformula query could I use to get AB but not ABC, as when I do a search or find for AB it returns both the results, as expected. An equal (=) sign wouldn’t work as it’s not the complete field.
Help appreciated.
Oct 31, 2018 10:47 AM
What about a search for AB in addition to a count of the letters? (so it would need to have AB and be equal to 2 characters?
Oct 31, 2018 11:35 AM
That wouldn’t work as, if it was AB C, it would check it’s length as two. There are so many possible test cases, over which FIND and SEARCH fail. I could go ahead and create a function for this on javascript(Node.js), but I hoped such a function, would be present here. There isn’t. :sob:
Oct 31, 2018 11:41 AM
Hmm, can you show me what the data looks like? It is hard to understand the limitations/needs without seeing it.
Oct 31, 2018 11:45 AM
This is not dependent on my current dataset, I have been running through different test cases, which would cause issues in the future. This is one I couldn’t handle using AirTable functions.
Oct 31, 2018 11:47 AM
My question was mainly to determine what your linked records actually are. I assumed based on your first message the record names were “ABC”, “CDE”, etc. But it sounds like they are actually “A”, “B”, “C”, etc. This would change the way of approaching the issue - however it would likely take some more complex IF formulas.
Oct 31, 2018 11:55 AM
I supposed there could’ve been a way to check for a string-match to the option, which is a really basic function required for matching a linked field to a specified string, but sadly there is not, instead I have to use hacks which could disrupt the program when I use an array of test cases. It’s just a basic array search, which Airtable complicates.