Loading profiles in mobile apps


has anyone had experience creating different user profiles? I’m, trying to create the ability to go to a users/restaurants profile from clicking on a link but am unable to figure out the commands necessary to pull the correct users photos, info, etc.

has anyone ever worked with this?

This is core Bubble functionality. You have pages that are used to create things of various data types by inputting information (such data might be from you the administrator, or supplied/created by users of your app). You also have pages that are used to display that data in various ways. You tell Bubble which specific thing the page is about by passing that thing’s unique ID (what Bubble calls “sending data to a page”).

Sounds like you need to do the basic Bubble lessons. Do all of them, but in particular you are interested in “Saving and Modifying Data” and “Sending Data to Pages” tutorials. Having completed those, you should grok the basic concept:

Also, you really don’t want to go down the rathole of passing URL parameters except when you really need to to achieve something fancy. Use the built-in metaphor.

Thanks Max and Keith!

I apologize if I was unclear. Since I am building this out as a native app, I am unable to add different pages - unless the browser plugin fixes this? So I’m working only with groups that are hidden/shown.

I’ve done the tutorials and am pretty comfortable with most of the Bubble layout. Most of the app itself is working (login, feed, etc.) I’m just trying to build a “link” function of loading a specific users profile without changing pages.

I’ve built out a page that has dynamic images and text to represent pictures and bio. When the “link” is clicked, the state of the page changes to show that data, I’m just having trouble telling the dynamic images/bio where to pull their data from I believe.

Does that make sense?

Many thanks!

Ah, I see. So presumably you know the ID or some other identifier for the thing you want to display. So, you just retrieve that from the database. That’s just:

Do a search for… Whatever_Thing (various constraints)

That returns a list of Whatever_Things that meet your criteria, right?

Let’s say you know the unique ID of a specific thing (or perhaps there’s something like a unique “username” associated with your User objects that you can key off of). The search that will return that specific thing is:

Do a search for… Whatever_Thing (with constraint unique ID = the_unique_id_to_find):first item

Searches return lists of things. Even if you know a given search will always and only return one thing, the search is still a list of things (with just 1 item in it). To convert that to a single instance of the thing, you use the :first item operator (in the case of a 1-item list, this is of course the same as using the :last item operator).

Figured it out!

The restaurants are showing in a repeating group in a timeline. By clicking the restaurant name, the state of the page changes to show the “restaurant profile”. After changing the page state, I then used a display data work flow using the repeating group as the element and the current cell’s user as the data to show.

Doing this made then made the repeating group the parent element, and I was able to set dynamic data in each field to show the “parent group’s Thing” to show the

restaurants profile image, bio, etc. etc.

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