JoshuaRumbut
7 years agoQrew Trainee
Associating new records to existing records based on category and in order
Hi, I've looked high and low and can't find quite what I'm looking for.
A user shows up and fills out a form, for simplicity lets say they enter a single category and submit. In a separate table I have many items for each category, that must be associated with the prior submission in a very specific order. For instance, if this is my items table:
The first request for animal must be associated with item #1, and the second request for animal must be associated with #4.
Ideally, when the user submitted the request form, Quickbase would go and make the association on its own and report the item number back to the user. I haven't found any way to do this. The other acceptable solution would be for the user to have something like the related record dropdown, but with only the correct item on it. I'd be OK with that.
What I have currently is this formula:
This links the user to a one item report that appears to always show the correct item, but then the user has to click edit and manually link the Request to the Item, which is cumbersome and leaves room for error.
A user shows up and fills out a form, for simplicity lets say they enter a single category and submit. In a separate table I have many items for each category, that must be associated with the prior submission in a very specific order. For instance, if this is my items table:
- "Animal"
- "Mineral"
- "Vegetable"
- "Animal"
The first request for animal must be associated with item #1, and the second request for animal must be associated with #4.
Ideally, when the user submitted the request form, Quickbase would go and make the association on its own and report the item number back to the user. I haven't found any way to do this. The other acceptable solution would be for the user to have something like the related record dropdown, but with only the correct item on it. I'd be OK with that.
What I have currently is this formula:
URLRoot() & "db/" & [MY_DB_ID] & "?a=s&query={'12'.TV.'" & URLEncode([Category]) & "'}&opts=disprec.num-1"
This links the user to a one item report that appears to always show the correct item, but then the user has to click edit and manually link the Request to the Item, which is cumbersome and leaves room for error.