Change multiple Things in workflow

I want to change the Status field of multiple Drivers when a Job event happens.
The multiple drivers are defined by a field of the current Job thing; this field is called Dispatch driver list. It’s a list of driver IDs selected for that Job.

So I have a Job event: When Button Dispatch is clicked.

and I’d like to have this sort of action: Make changes to a list of things
where List to change is, in words: those Drivers whose ID is in the Job’s Dispatch driver list.

So I tried the action: Make changes to a list of things, of type Driver, and List to change = Search for Drivers …
This is where I would expect to be able to specify a constraint that the Driver’s GW is in the Current Page Job’s Dispatch driver list - but that last term isn’t in the dropdown list.

Ideas?

Try :filtered ?

Hokay, so, Thing “job” has field “driver (list)” for drivers who have been assigned to that list.
When Button “dispatch” is clicked, you want to set the list of drivers.

So you need a list of drivers somewhere on the page, to reference when you click Button “dispatch”. How are you building that list and where is it stored?

Hi NigelG and blueback09 (btw how do I link your names rather than type them?),

I finally figured out a method that works (actually Bubble did help quite a lot!).

The action window looks like this:
16

and the “Search for Drivers” window looks like this:
29

The key thing is that I’m using a custom state (which I already have from a multiple driver select RG). This state holds the selected Drivers.
I don’t need the Job Dispatch list field for this purpose.

I think that is what blueback09 is alluding to.

I’m learning! Thanks…

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.