Filtering objects, modifying them, and returning an objectset

Hello,

How would I write a python function that takes in a string (search query), filters for objects, updates a property of the objects, and then returns them as an object set. I would then use the object set in Workshop.

Thanks,
Jenny

It’s not possible to return objects from an action. You need to break this up into two parts

  1. Action that takes objects and edits appropriately
  2. Load the objects you want

In many cases if you take an action on objects in a workshop workshop will refresh them in the UI for you

1 Like

Hi Joe,
Thanks for your response. If I have a button that triggers an ontology edit (updates objects). How would I then return the objects that are edited in the frontend? Furthermore, if multiple users are making ontology edits at the same time, what happens?