Hi there - hoping for some advice on below scenario
I have an object with 2 fields and each field is a list of things of the same datatype.
I have a reusable that can
- take a list as an parameter (object.list-1 / object.list-2) and display them.
- allow the user to select one of the list items and edit it
I am unable to get the reusable to be able to create a new thing and add it to the respective list.
- The reusable can create a new thing however, when I try to make changes to a list of things (the reusable’s parameter) the workflow won’t let me.
I’ve been using the
- ‘make changes to a thing’ and choosing the object
- the only option I get then is to change a specific field of the object and
field 1 add ‘item created in step 1’
field 2 add ‘item created in step 1’
how can I get the workflow step to be
add ‘item created in step 1’
so that the parameter could be
object.field 1 OR object.field 2
has anyone worked out how to do this in bubble?
you can use 2 button each is for object.field 1 and object.field 2
2 button that said “add to list 1” or “add to list 2”
Btw IMO the table is not practical why not just add another field on the object such as “group” then u can assign each item of the object into group 1 or group 2
For displaying u can use filter on the do a search for
It also ease you into creating a new thing then assign it to diff group and also you can edit with ease
Edit : it’s just hard for me to explain the solution for your problem since english is not my main language im very sorry. So that’s why i suggest another solution
1 Like
Just create a state list in the Reusable Element itself. Any states created in the Reusable Element itself is accessible from any page it is in.
Modify your WF (in the RE) to also update the value of that state. Then just point to that RE 's state.
1 Like
Thanks @anthony9 … we solved it this way to move forward. Thanks for the suggestion.
The problem I still have going forward is that 2 unrelated objects may have attributes of the same list (customer has a list of contract.policy; and supplier has a list of contract.policy). I was hoping to have a generic reusable that can update any list of contract.policy without knowing which object it actually belonged to.
1 Like
Thanks @ihsanzainal84. I’ll look at that as an option.
I understand what your saying and can see how using states would allow me to generalise the item. I still can’t get the list to update on the list’s owner though