Passing data through views

Hey everyone !

I’m working on a my first mobile app in Bubble. This will be Imoka’s mobile app.

In short, it’s a real estate listing app, with alerts, scam detection etc… All the logic is already handled by the webapp, so nothing too difficult.

I think I hit a beta’s limitation. I’m building the alert system, and I’d like to reproduce this type of UI/UX : seloger demo mobile.MP4 - Google Drive

In theory, nothing too crazy.

The issue is that I can’t find a way to make view communicate between each other. I’ve tried creating a “Main view” that list the section, and when the users clicks on a section, he is taken to another view (for example, the “Surface” view).

But ! I’m then unable to get the data from each section, and centralize it in my main view. And since we can’t access another view’s properties, I’m stuck here.

In the end I worked around this by using a “SPA approach” (demo here), meaning using custom states to track the active tab and hide/show groups based on this, but it’s way less fluid than the views (and animations are not working on mobile, since there JS based).

Am I missing something ? Or is there nothing we can do for now ?

Would love your inputs ! Thanks :slight_smile:

Hi Thomas,

I think it’s possible with properties of views. All your views should have all these properties :

  • Furniture
  • Location
  • Rent
  • Surface
  • Number of rooms
  • Number of bedrooms

And you pass them back and forth between views every time.

For example :

  1. Your alert creation starts with all these fields empty.

  2. You go to the “furniture” tab, passing 0 data (if the main view properties are all null, meaning the alert creation has just started)

  3. You select whether or not the appartement needs to be furnished or not, then you go back to your main view, passing “yes” for furniture.

  4. You are back on your main view.

  5. Then you go to the “Location” view, and you pass “yes” of furniture. When going back to the main view, you pass the data “yes” of furniture + the location

etc…

Should be working like this !

1 Like

I know I didn’t ask the question :laughing: but thanks for sharing this :+1:

Hey @thibautranger !

Yep, I tried something similar, but I think what I did differently is that I tried to centralize everything on the main view (which therefore gets reset every time).

I didn’t try to pass all the data each time between views like you say.

I’m going to give it a try, I’ll let you know if it works !

Thanks for you input :slight_smile:

Are you guys able to reset the properties of the views by setting them with nothing :

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.