I’ve created a beekeeping app with two primary tables. One table is for hive inspections and one is for yard management. The yard management table is a data table of each location with specific information collected and has a slice to manage hive counts of a number of different hive types that are verified during an inspection.
I’ve created a form from the hive counts data slice that we reference in two ways. Firstly, through an action after the Hive Inspection form is filled out which directs the user to the hive counts slice data for that hive that the inspection was just done for. I have it setup as the form action as the user hits save. So, on “save”, the action takes the user to the hive count slice form. I am using linktorow for this and it seemed like when I first set it up that it would pull the hive data from whichever hive the inspection was being performed on, but it seems like it may have stopped working for some reason and always shows the first hive in the list. For example, I am filling out the inspection form for Hive 3 and when I complete the inspection form and click save, I should be directed to the Hive Counts form with Hive 3 data pre-filled to adjust them for any new counts. What it actually does is goes to the Hive Counts form for Hive 1 instead. I think this was working correctly initially but am not sure if I may have changed something inadvertently that affect the action.
Secondly, the action does work properly when I am on the yard management tab. We can go to the yard view and the action button is there which works by pulling the specific location information for updating.
This is the linktorow syntax I am using on the action:
LINKTOROW([Location ID], “Hive Counts_Form”)
I’m hopeful someone can help me piece together why it won’t do the same from the Hive inspection form when we send them to this hive count form.
One thing I also want to be able to do is to take the yard management view and add up all of the hive data numbers so that we can create a quick reference report that shows the total number of hives in the entire operation.