Problem displaying data of a data type in a SelectableList

I have a SelectableList with a list of user-created businesses. Clicking on an item (user business) in the list takes you to a receiver view. This view receives the data from the “User Business” data type. Within this receiver view, I have another SelectableList, which will be the list of services (Card Service) offered by the business. What I want is for this second list to contain only the services offered by the business selected from the first list, and so on for each business in the list.

You may not need a SelectableList for this setup.

If the goal is simply to show a list of businesses and open the selected business when the user taps one item, a regular Vertical List / repeating list view is usually enough.

Then on tap of the cell, just navigate to the next view and pass the selected Shops and Businesses thing.

For the services screen, I would also use a normal list and load the data with:

Do a search for Services and Products with the constraint: Business = This page’s Shops and Businesses

Looking at your database, your current structure is not completely wrong, but it is not the most practical for this use case.

Right now you have a field on Shops and Businesses that stores a list of Services and Products. That can work, but a cleaner and more scalable setup is:

Shops and Businesses

  • Business Name

  • Business Description

  • Business Location

  • Business Owner

  • etc.

Services and Products

  • Card Name

  • Card Description

  • Card Picture

  • Card Price

  • Business → Shops and Businesses

  • Creator

  • etc.

With that structure:

  1. First list shows all businesses

  2. User taps one business

  3. You open the receiver page/view and send that business as the page thing

  4. Second list does a search for services where

    Business = This page’s Shops and Businesses

The SelectableList is more useful when you really need built-in selection behavior, like multi-select or keeping a selected state inside the same screen. For simple navigation, a standard list is usually the better choice.

The receiving view has a “Properties” which is what I used to send the data from the previous view.

I used the configuration you indicated for this “ShortList” but the “This page’s Shops and Businesses” option doesn’t appear.

Do a search for Services and Products with the constraint: Business = This page’s Shops and Businesses

This was the configuration I was able to make using the “Properties” of the same view; the icon appears indicating that it connected correctly to the database, but I think it’s not right.

The way I configured “Data Source 2” allows me to connect the ShortList to the database, but the problem is that it displays the “Services and Products” Data Types mixed up. I enter data into a business in the list, then use a “Sheet” to create a Card in the ShortList. It creates and displays successfully, but it also appears in the other businesses in the previous list.

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