New free plugin (9 march/20) - Satellite, trigger worfklows in reusable elements from the page and vice-versa

Hi, great; i have lost some functionality when i changed onboarding from a Popup to a reusable element. I want to redirect new customers into my own workflow after onboarding with Google / FB / Apple - pull them into my own workflow to collect photo, phone, change email and so on… .I lost this possibility in the rusable mode, can you bring it back with satellite plugin, what do you think?

It’s likely this plugin can help, it adds a better way to send data to the reusable element and to enable controls between the page and the reusable.

1 Like

Hi @vini_brito
I’m having trouble typing a static text on the Satellite to send value.
For context, I’m using it to set state so I just pass typed static text.
Is this a limitation, ie do I have to get the text from an element?

Thanks!

I am having issues with sending option set values as well as text values.

Screen Shot 2020-07-10 at 2.08.06 PM

I am having luck getting data type values to send…using the same set up. And they are sending in both directions from a reusable to a page and from a page to a reusable…so it seems like there may be an issue with sending option set values

@vini_brito, thank you for another great plugin! I’m becoming a fan of your work and appreciate everything you put out so far.

I am trying to implement this plugin in my app but, I am having the following issue:

Scenario:

I have a reusable element inside a repeating group that performs 2 basic actions: Edit & Delete a “current cell”

Limitation:

Without your plugin, I couldn’t make any reference or execute workflows from the reusable element inside the cell of a repeating group to a group on my page.

With the Satellite plugin:

1 - Inside the reusable element, I set up 2 (1 step) workflows for 2 Satellites A & B.

2 - On the page, I have the workflow below to send the data from the current cell to the designated group for editing.

My current limitation:

When I run the workflow it only passes the last record from the repeating group. I have 3 records in the repeating group and it only and always passes the last record.

I read one of your posts about this issue but I couldn’t understand what is the solution to this behavior.

I know it must be something trivial but I can’t get it to work.

Thank you for your help!

Best regards,

Marcos

Oh man :joy: :sweat_smile: from now on, avoid that as much as you can, you can always just make an element and it’ll work fine, no need for tucking reusables everywhere.

Anyway, on to the specifics:
I’d have to spend some time debugging what exactly goes on in this setup and what exactly would solve it, but it seems to me that all the Antennas trigger and one replaces the value of the other, so the last one ends up staying.

If you really want to do this, which is use a reusable in a repeating group, then another extra step may be helpful, which is using the sibling plugin for repeating groups called Orchestra.

You’d have to pass the cell index from the cell to the Maestro element action called “Trigger musicians” and then you’d run things properly. But this honestly seems like an unnecessary double backflip of complexity, again I suggest not using a reusable element inside a repeating group if it’s possible not to.

1 Like

Hey @vini_brito, thank you for taking the time to answer my post. I’m getting repetitive here but I can’t thank you enough for putting out so many great plugins and being very helpful with questions about it.

I think I must be like an inch away from making it work. Because, if you add a logic that asks for the “first item” it passes it perfectly. So I am missing a more specific way of going about it.

As I think deeper about this behavior, when debugging this issue I noticed the following:

When you use it in a general way, without more specific parameters, just using “current cell”, the antenna is sending the entire list, it’s like it is referencing only to the “repeating group list”, not the “current cell”, and when you try “:first item” from the “repeating group list” it just works.

So right now using “current cell”, from what I understand is not viable because it’s passing the entire list, in other words, it does not function as it should.

So the only way to go about it would be using the logic thru “repeating group list” until you can find out what is going on with the “current cell” option.

My 2 cents.

If I find a way to work it I will post it here to help others.

Best regards,

Marcos

1 Like

Hi @vini_brito, I am having an issue with this plugin. I am setting some states from an antenna in one reusable popup, sent from a satellite in another reusable popup. Everything works fine with my debugger turned on. When I turn the debugger off, the antenna workflow is triggered, but the states don’t get set. And I should add another thing, but I don’t know how to properly explain in. If I send data again (ie satellite triggers the antenna a second time), the state gets set to the previous data (ie from the first time).
Best regards,
Ned
.

1 Like

I have the same issue sending options and texts.

@boston85719 @palouchristian
Sorry for the late response!
Yeah, indeed option sets are a weird thing in Bubble, behind the scenes their structure is different from everything else. I’ll add tinkering with them to make this plugin work with them (considering they’re not working already) to the list, but can’t commit to an ETA.
Meanwhile you can just use “Option set’s value” to pass whatever value you have in it.

@nedbrush
It seems like a race condition due to some data not being loaded when the Antenna tries to send it, try making sure all data is loaded beforehand, like loading it in a hidden (1x1 pixel in size) group or repeating group and when it’s finished, make the Antenna send it.

1 Like

@vini_brito I am having an issue that keeps coming up on mobile devices. I get this error message

The plugin Satellite (reusable element addon) / action Trigger antenna receptive to a Satellite threw the following error: anonymous@PLUGIN_Satellite–reusable-element-addon–element_action–Satellite-Trigger-antenna-receptive-to-.js:3:8
run/</</</<@https://dhtiece9044ep.cloudfront.net/package/run_js/96dd59feb2c136ae6dc033e067a1bcabe50665d220804137093b7aee9715cf3b/xfalse/x9:14:519002
E@https://dhtiece9044ep.cloudfront.net/package/run_js/96dd59feb2c136ae6dc033e067a1bcabe50665d220804137093b7aee9715cf3b/xfalse/x9:14:507812 (please report this to the plugin author)

I do not recall experiencing it on a desktop device or tablet, which causes me to believe it may be connected to the visibility of the antenna and the satellite.

I have a setup with an antenna in one reusable element and a satellite in another reusable element. Both reusable elements are on the same page, however, on mobile devices the reusable elements are shown at different times.

Do you think based on this error message that the situation is caused by this?

One reason it leads to me believe it might not be, is that the error is not consistent on mobile devices. It usually happens only after the page is first loaded, then after the error message, subsequent triggers of the plugin elements work fine…which thinking about this may be further evidence of the visibility on page load, so maybe it is just an issue of both the antenna and satellite being visible at the same time, or at least having been loaded previously.

Any thoughts jump out from your experience and the error message itself?

1 Like

Hi Vini

I am having an issue with the plugin using the cells position list…it seems no matter which cell numbers I push into the dynamic expression, it only every triggers for the cells index based on the number of items in the list.

For example, if I put the dynamic expression for cells position to contain the cell numbers 5,6 which has only two numbers in the list, the trigger will fire for index cells 1 and 2, not 5 and 6.

To show what is happening I’ve taken some screen shots of the setup and some videos to show the debugger in step by step mode.

BTW, I am using this plugin in conjunction with the Orchestra plugin as I am triggering events from reusable elements inside of a repeating group on a page…Most everything is working fine, except this issue of the cells position list.

Here is a text element set to display the values coming into the plugin

Screen Shot 2020-11-25 at 2.44.23 PM

Here is the setup for the trigger event to use the Received list of data 4


On my page after I run the events this is what I see, which demonstrates the data list values are correct as I have selected those cells

Screen Shot 2020-11-25 at 2.47.36 PM

However, when I run the trigger event this is what I see in the debugger step by step…it is not setting the correct list of cell positions…it seems to not take the cell position to apply the values to and instead just uses the list of numbers count or something.

This is what I see in the debugger for the trigger

So in the first screen shot of the workflow event, the Cell positions list is correct, but subsequent screen shots show the values being set, but the result is that only cells 1 and 2 are set, not 6 and 7…my goal in this example was to have Friday and Saturday set, not Sunday and Monday

Is there a step that I am missing to ensure that the values are attributed to the cells whose index number are the same as those in the cells position list?

BTW, when I trigger the event to only trigger in a single cell position, it works as expected.

So, seems like it just has to do with the list

@boston85719 That’s… oddly odd! I’'ll have to debug that, as the values are apparently being passed correctly. I see no reason for it to not work, especially since the “single cell” field also works fine so this eliminates some common possibilities.

The mechanisms are slightly different in each field, as you found out, and I have an idea on where to start investigating, but I’ll have to say the sometimes dreaded words:
Can you reproduce that in an isolated dummy app set to “everyone can edit” for me to tinker with?
You’d send me the link via private message.

@vini_brito What does class mean here?

Thanks!

It’s like an ID, but a collective one.
Many Antennas can have the same Class so you can trigger them all at once.
You can use that as an ID too, just specify a unique Class to each Antenna and it works like an ID :blush:

Okay great thank you then where do I also put the class name?

On the Antenna Element ID?

image

No, check the example to see how everything goes: https://bubble.io/page?type=page&name=satellite&id=sdfsfsdfsdf&test_plugin=1536810856833x299233017831358460_current&tab=tabs-1
It will be your best guide setting it up (:

@vini_brito

First of al, thank you for this plugin. It helps my users to switch faster between elements instead of pages.

However, I can now switch between a page and a reusable element. But I can’t send data between resuable elements.

The situation is as follows:

1. Resuable element A: Has a satellite. Also it has a workflow to trigger and send data. I select de data from a repeating group to send. See three pictures below:
image

image

2.Page 1: Has a antenne. Workflow to catch the trigger. Has a workflow to send the data to another reusable element
image
image


image

“Dashboard Project Edit” is another reusable element I want to display the data to.

The problem is that the reusable element can’t receive de data from the antenne.

So I have added for the same satellite an antenne within the reusable element “Dashboard Project Edit”. And it still doens’t provide the data.

Antenna “Dashboard Project Edit”:
image

Workflows within the "Dashboard Project Edit’:
image
image


image
image

After al of this it still doesn’t work.

Can you help me on this issue?

In advance thanks.

Wais

@vini_brito I love the Satellite plugin but I ran into a really odd bug. I’m passing some strings of data (as text) that I get from an external API and occasionally (about 5% of the time) they are interpreted as latitude and longitude then promptly throw and error.

One example of the data being passed is:

Data

id: 1589687543-jIV75A1
username: LueXProductions

Any ideas on how to sanitize the strings so that this doesn’t happen?

@StarrK_Designs It seems like Bubble’s API Connector is interpreting it like that, not related to the plugin, unsure how you can force Bubble to see it as a text since there are eons that I don’t touch the API connector :yum: