Search of....two things in one group

Hello :slight_smile:
I have an booking history that is filtered as:

in the same group, I have a button which is visible when a user has not added a restaurant review:

And I don’t know how to now set bookings history group that don’t have a review from a user to appear first in the booking history?

Hi @bartoszkopec89 !

One option is assemble your repeating group merging two lists.

The first one with the restaurants without a review :MERGED WITH restaurants with a review. Doing this you will always have the restaurants without review being displayed first.

Thanks :slight_smile:
but in the database I have reviews as a separate element, restaurants and reviews are separate.

data

Yes, I noticed :sweat_smile:, that is why I suggest you to do two separated Searches and merge the results.

SEARCH 1:

Do a Search for restaurants :minus list Do a Search for Reviews:Each Item Restaurant: Uniq Element

Doing this, the result will be a list of restaurants without a review.

SEARCH 2:

Do a Search for Reviews:Each Item Restaurant: Uniq Element

Doing this, the result will be the list of restaurants that already have a review.

REPEATING GROUP:

Search 1: merged with Search 2

Did you get it?

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