Bulk cross referencing in as few clicks as possible

3X_7_4_747f87d8644f934e0cb0b0f5e496cf0f2d6150d7.png

I have 2 tables

  1. Tracking Numbers (Master / Parent) Table 1 is a listing of Job numbers
  2. Related Tracking Numbers (Child) Table 2 is a listing of cross referenced Job Numbers

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โ€ฆ


I would like to be able to be able to (like a bulk delete), be able to pick all the numbers that are related, then say OK or NEXT, pick the โ€œMaster / Parent numberโ€, click Save and have it create a listing of all the selected children in the โ€œRelated Tracking Numbersโ€ under the Master number.

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 Solved
0 7 249
1 ACCEPTED 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.

View solution in original post

7 REPLIES 7

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 have added a โ€œData: add a new row to another table using values from this rowโ€ Action to the โ€œTrackingโ€ (Parent) table that adds data to the โ€œRELATED TRACKING NUMBERSโ€ (Child) table, using the input() function
    INPUT( โ€œMASTER TRACKING NUMBER KEY IDโ€, [key(Id) ])
    on the โ€œMaster tracking number Key Idโ€ row.

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


Fixed.

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.

Top Labels in this Space