I have 2 tables
The image above shows the Tracking number table. You will notice that 3524 is a โMaster Invoiceโ. 3525, 26, 27, 28, 29, & 30 are all also their own Tracking numbers but are also related tracking numbers to the Master Invoice 3524.
I currently have the system set up that you can create a new Tracking Number, and then using a child table โRelated Tracking Numbersโ tie in any and all other other existing tracking numbers.
The Dreamโฆ
Currently I am manually adding the master/parent number to all of the children under each childโs โRelated Tracking Numbersโ and then the adding the list child numbers โRelated Tracking Numbersโ each to the master.
Now I am no stranger to โActionsโ, and I do image that this whole process would involve โData execute an action on a set of rowsโ. That said Iโve never been down this part of the rabbit hole before and there doesnโt seem to be anything that I can find which demonstrates what Iโd like to do.
Hive mind what say you?
Solved! Go to Solution.
If the understanding of your requirement is correct, you could try the INPUT() function.
In the child tableโs ref column , please have valid_if as ParentTable[Parent Key]
Then please have an action on the child table that sets the ref column [MASTER TRACKING NUMBER] to the master table with an expression something like
INPUT( โMASTER TRACKING NUMBERโ, [MASTER TRACKING NUMBER] )
You can then bulk select the parent tracking number in the child tableโ stable view and Input function will present a list of all โMASTER TRACKING NUMBERโ s to select from.
Please note that I quickly tested the concept and it works. You will need extensive testing at your end as some test scenarios I might have missed.
The below video shows the parent table ID( โOrder IDโ) from a list of parent table ids being assigned to child table โOrder Detailsโ selected records.
If the understanding of your requirement is correct, you could try the INPUT() function.
In the child tableโs ref column , please have valid_if as ParentTable[Parent Key]
Then please have an action on the child table that sets the ref column [MASTER TRACKING NUMBER] to the master table with an expression something like
INPUT( โMASTER TRACKING NUMBERโ, [MASTER TRACKING NUMBER] )
You can then bulk select the parent tracking number in the child tableโ stable view and Input function will present a list of all โMASTER TRACKING NUMBERโ s to select from.
Please note that I quickly tested the concept and it works. You will need extensive testing at your end as some test scenarios I might have missed.
The below video shows the parent table ID( โOrder IDโ) from a list of parent table ids being assigned to child table โOrder Detailsโ selected records.
Suvrutt_Gurjar
First, thank you for the reply. Second you have almost solved my issue perfectly.
I have had to make only a few modifications. To clarify my situation, all of the Tracking numbers share the parent table โTrackingโ & the child table โRELATED TRACKING NUMBERSโ is there so I can relate multiple Tracking numbers to a single number.
So in my case I have done the following:
I can select the numbers I want to add to the โRELATED TRACKING NUMBERSโ (Child) table. Click the โLink to master numberโโฆ
But it never gives the option for me to select the number I want to specify as the Master. It instead just writes the 3 new lines to the child table with the respective Tracking numbers as the โMASTER TRACKING NUMBER KEY IDโ in place of being able to select a number as in your video example
Thoughts?
This seems to be the problem.
What are you trying to do with it?
Dang! Youโre correct I has the Master & The Tracking number formulas flipped. The input() should be on the Tracking number key id column not the โmaster idโ column
Tested and the same issue persists. At no point am I able to pick a number, as is done here:
Thoughts?
I think you are trying to combine two actions into one โAdd a new row to another table using values from this rowโ and within this action, you are trying to have the dynamic INPUT () function. I think this combination will not work together.
As shown in your first post, the approach is based on all the children record being already present .
For this approach to work , please try to add the rows with a โGlobalโ master ID value such as say โGLOBALID1โ and thereafter implement the input function based action in the child table. This input action will allow you to change the master ID in bulk.
Please also remember to include below
I was afraid youโd say that. I will tweak the system and see what I can com up with.
Thank you very much for showing me the path Sir.
I have worked some appsheet voodoo magic and came up with a solution to my issue. The solution is as follows.
3 separate actions and a grouped action along with some google sheet side array formulas
Step 1
In my โTrackingโ (Parent) table, I added a column to take an input for a master number and then hide it from user view.
Step 2
The child table โRELATED TRACKING NUMBERS", I made 2 new columns that auto calculate and allow me to either take as a reference either a user input Master & Related number, or if no user input is given it looks at the โTrackingโ (Parent) table for a โmaster numberโ in the new column.
Step 3
An action to โSET MASTER TRACKING NUMBERโ in the โTrackingโ (Parent) table for selected rows.
Step 4
An action to create child table โRELATED TRACKING NUMBERS" entries based on the selected child Tracking numbers and autofill/link the appropriate child data
Step 5
An action to create child table โRELATED TRACKING NUMBERS" entries based on the selected child Tracking numbers and autofill/link the appropriate master data
Step 6
An action to link and execute the 3 previous actions.
So a Master number with 3 subservient numbers Will create the 6 entries in the child table โRELATED TRACKING NUMBERS" table. 3 entries for the Master number that show each subservient number. Then 3 entries one for each Child that shows the Master number.
It works really well. Thank you again for showing me the new INPUT() function.
User | Count |
---|---|
40 | |
32 | |
30 | |
17 | |
16 |