Skip to content

Bulk Update selected rows with value #11055

Answered by andz-bb
Blochergroup asked this question in Help
Discussion options

You must be logged in to vote

hey @Blochergroup @sklaffa

I've come up with a new solution that should work well for you both. It's similar to Conor's method above but instead of querying the rows in the automation, I am passing an array of full row objects to the automation from the data provider. I am using a Postgres table to test this so it should work with most other external datasources.

In order to access that full row data I have made sure that the update button where I'm triggering the automation is nested within the data provider as shown here:

Here are the actions I have for the button:

Here is the custom JS I am using to get the value for rows:

return $("Dataprovider.Rows").filter(x => $("Table.Selected r…

Replies: 4 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@ConorWebb96
Comment options

@Blochergroup
Comment options

@sklaffa
Comment options

@ConorWebb96
Comment options

@sklaffa
Comment options

Comment options

You must be logged in to vote
3 replies
@Blochergroup
Comment options

@andz-bb
Comment options

@Blochergroup
Comment options

Answer selected by Blochergroup
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ConorWebb96
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
enhancement New feature or request bb-automations Budibase Automations related work bb-components bb-public-api Relating to the Budibase public api
5 participants