Changing Data of multiple Rows

Good Day everyone,

Im wondering how i would change multiple rows in my table based on an edit of a row.

lets say my Table has 5 columns.

If the user edits the 4th of 5th column in any row, I want to update all corresponding row Columns 4 & or 5 based on a conditional check on column 1, 2 & 3.

0 11 1,040
11 REPLIES 11

Steve
Platinum 4
Platinum 4

Youโ€™d want to use actions. You could attach the actions to the form to be performed when the form is saved, or you could create a workflow that triggers on the row update.

Im getting the following errors, So i want to update the following columns of said rows as in my behaviour formula from the values of the said row that was updated.

Refer to the column you want instead. For instance, [Waffle Weight].

This is what I have and everything Is triggering but if does not seem to be working.



2X_7_7b07f187154b6368edd4a56e15a3043955eb0bf4.png
!

Am I missing something?

Thanks,

@Jonathan_S
Firstly, in your SELECT(โ€ฆ) expression,provided [Id] is the key column for your Types table (which I assume it should be), there is no need to use the FALSE statement at the end because key is by-nature unique and it canโ€™t contain recurring/duplicate key information.

Right of course, anything regarding a better way than Marc is suggesting though??

Do you know of a better solution? Rather not have a column in my table just for flagging.

Unfortunately, actions have no inherent way to discover from where or why they were invoked, so a work-around like the one @Marc_Dillon suggests is among your few alternatives. If you donโ€™t want to or cannot augment your existing tables to accomplish the goal, you can instead use a separate table created exclusively for this. Itโ€™s a little more complex, but cleaner and is more broadly usable.

Iโ€™m betting that you lost the context of which row the system was โ€œinโ€ to begin with, going from workflow to action. So, by setting the โ€œOven Tempโ€ to [Oven Temp], you are literally assigning it to itself, and it is blank.

If I may suggest. Add a โ€œflagโ€ column to the table (hidden). When this whole action-set starts, set some value to that column. Then in your โ€œUpdate Rowsโ€ action, youโ€™ll assign each column with:

LOOKUP(โ€œflag valueโ€ , โ€œTypesโ€ , โ€œflagโ€ , โ€œcolumn to return (oven temp, line temp, etc)โ€)

And make sure to add another action at the end to clear away that flag value.

There may also be a better and more efficient way to do all thisโ€ฆ

Hi, I am thinking around and didnt find another solution than yours. But can you stell me how to set a hidden column value just after the change happenned?

Thanks

I cannot, because I have no idea what you just asked for.

Top Labels in this Space