Forum Discussion
EvanWestbrook
6 years agoQrew Cadet
Layton,
This is an interesting question. I've provided a TLDR at the bottom.
Assumptions
General Table Structure:
SQL Version of Search for Records:
Steps for your question:
Potential Solutions
Conditional Lookup Fields (No go)
In similar situations, I have used conditional lookup fields matching a field on the Parent Record with a validating formula field on the Child Table. For example the following would only show the most recent 100 Child Line Items to select for a Parent Invoice.
Coding or Microservices (maybe)
Unfortunately, QuickBase doesn't yet have a "search" feature I know of in a native feature (Automations, Webhooks, etc.) that would allow you to do Step 2. You would need some sort of automated solution (code page, microservice provider, QuickBase Partner, etc.) to do the above query and match everything up. If you're up for coding something, QuickBase's API_DoQuery is very useful.
Looking at Problem a Different Way (recommended)
You might consider adding a step to your workflow where users manually select the Frequency Block for the Channel. There are some simple UI items to make this seem less burdensome. For example, you could create a formula text field on Frequency Blocks called [Frequency Range].
TLDR:
Based on your use case, there's not currently a solution I know of for what you are trying to do. Coding might work, but a more looking at your problem a different way may give you a more simple solution.
------------------------------
Evan Westbrook
PRIME Developer
Harder Mechanical Contractors Inc.
Portland OR
------------------------------
This is an interesting question. I've provided a TLDR at the bottom.
Assumptions
General Table Structure:
SQL Version of Search for Records:
SELECT f.Frequency_Blocks FROM Frequency_Blocks f JOIN Channels c ON c.Related_Frequency_Block = f.Record_ID WHERE c.Center_Frequency >= f.Start_Frequency AND c.Center_Frequency < f.Stop_Frequency
Steps for your question:
- Record Added/Modified in Channels
- Search for single matching range in Frequency Blocks
- Edit Record from Step 1 in Channels, and make Related Frequency Block = Record from Step 2
Potential Solutions
Conditional Lookup Fields (No go)
In similar situations, I have used conditional lookup fields matching a field on the Parent Record with a validating formula field on the Child Table. For example the following would only show the most recent 100 Child Line Items to select for a Parent Invoice.
Parent [Invoice Number Show] == Child [Line Item Show] Parent [Invoice Number Show] == "X" Child [Line Item Show] == IF(Line Item Show > [Max Invoice Number] - 100, "X", "")However, that type of solution won't work for your use case (matching on a range) because there are an infinite number of potential combinations in a range.
Coding or Microservices (maybe)
Unfortunately, QuickBase doesn't yet have a "search" feature I know of in a native feature (Automations, Webhooks, etc.) that would allow you to do Step 2. You would need some sort of automated solution (code page, microservice provider, QuickBase Partner, etc.) to do the above query and match everything up. If you're up for coding something, QuickBase's API_DoQuery is very useful.
Looking at Problem a Different Way (recommended)
You might consider adding a step to your workflow where users manually select the Frequency Block for the Channel. There are some simple UI items to make this seem less burdensome. For example, you could create a formula text field on Frequency Blocks called [Frequency Range].
List(" - ", [Start Frequency], [Stop Frquency])You could then use [Frequency Range] as the Default Record Picker (found under Table Settings - Table Structure - Advanced Settings - Identifying Records) in Frequency Blocks. When users are on Channels, they'll now select something like "12 Hz - 20 Hz" for [Frequency Block]
TLDR:
Based on your use case, there's not currently a solution I know of for what you are trying to do. Coding might work, but a more looking at your problem a different way may give you a more simple solution.
------------------------------
Evan Westbrook
PRIME Developer
Harder Mechanical Contractors Inc.
Portland OR
------------------------------