How to go to internal page and apply filter

Hi dear Bubbling community.

This is my first post as i have managed so far to do what i want (a little bit of circonvulsion here and there and off you go!!!).

But there i struggle (although i am pretty sure it is obvious to some of you…)

I have a RG in page1 with data and a button.
And when it is clicked, it would take me to page2 that has also a RG and it would be filtered based on page1’s data

Any idea would be appreciated.

Matt

There is function Data to send in the workflow “when you press the button”.
And there is lesson that called - Sending data to pages. Look at it.

Hi there.
I went through the lesson again, but cannot pass on the filtering.
I am adding some pics to make myself as clear as possible.


You are using a Link, you should use a button/workflow.

Hi, i am using a button/workflow.
But i do not know how to do it…

I followed this post:
http://forum.bubble.io/t/go-to-element-on-another-page/19724/2

So i get to my “Marchés” page but it does not apply any filter…

@matthieu_daney

Assuming you have:

  • a data type Marché
  • a data type Chantier, with a field Marché (of type Marché)
  • a field Chantiers (which is a list of Chantiers) in your data type User

→ Make sure your popup is of type Chantier
→ Make sure your page Marché is of type Marché

  1. Send Current cell’s Chantier to your popup when your icon in your RG Chantier is clicked

  2. Send Parent group’s Chantier’s Marché data when your ‘Marché’ button is clicked:
    rgchantier.2

Hey Ambroise,

just tried your proposal.
However, i have indeed:

  • a data type Marché
  • a data type Chantier, but not with a field Marché… Instead I have a data type Marché with a field Chantier…

So I cannot send Parent group’s Chantier’s Marché data to my Marché page…

Any idea?

Many thanks for your help so far

Matt

@matthieu_daney alright, set the data type of your page Marché to Chantier instead of Marché, and instead of sending Parent group’s Chantier’s Marché, just send Parent group’s Chantier

You would then have the right Chantier on the next page

Hey there,

Did everything.
Still no filtering in the Marches page…

If i am correct though, i have:

  • Sent the Chantier RG data to my popup within the Chantier page
  • Sent the Parent group’s Chantiers to the Marches page when clicking on the Marche button within the popup

So it seems as if the data is correctly sent…

I am stuck…

@matthieu_daney are you sure you sent the Current cell’s Chantier in the popup?
Then in your page Marché you would need to set the RG data source to Current page’s Chantier

Hey Ambroise.

I double checked and i definitely sent the Current cell’s Chantier in the popup.
However, i cannot set the RG data source to Current page’s Chantier as I cannot get my fields to display the Marches data i want to display…

@matthieu_daney are you trying to display your Chantier data in the page Marché? Or are you trying to display the Marché data related to that Chantier?

I have a one (Chantier) to many (Marchés) relationship.
So i am trying to display the Marché data related to the Chantier key.

@matthieu_daney Alright got you

  1. Set the type of data of your page Marché to Chantier
  2. Then in your RG in the page Marché, set the data source to Search for Marchés with the constraint Chantier = Current Page Chantier
    Let me know if that works

Spot on mate!!!

It works.

Thank you very much!!!

1 Like

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