Reusable Element Filtering from another page

I have a Reusable element with a RG that I want to filter from the main page. What ways do yall suggest?

I currently am working on getting a parameter to do the filtering but was curious on other ways it may be done.

This is what I have currently

So I have this drop down that I want to use to filter

This is the RE and inside is the RG

I know because the RE is technically on a separate page and cannot access the drop-down. Will parameters be the best choice?

If parameter is the right way, what is a way to get the drop-down to send data. Right now I’m lost on trying to think of a true conditional statement for when I change to drop-down inorder to navigate to page to send the parameter.

have you tried adding the date as a property to the RE? then you can reference it in the RG datasource. When you use the RE on any page, you just set the property on the RE. Like this.

1 Like

Yep that was the solution for this. I recently realized that you can push data into the RE :sweat_smile:. Thanks for the reminder.

1 Like

Question for you, exactly what is the property option used for the RE?

you mean for this case? I would add a date property, and in the RE use that date value to filter the RG

Well not just for this case. I just mean what is the difference between the property and just using data? When is the best time to use either of them?

Can you clarify what you mean “just using data”? You can always just use data, but how would the reusable know which data (when data is being determined or created outside the REU)?

I mean the option to use group data on the RE vs using the property to pass the data. What is the difference and what is the purpose between the two?

There are some differences between the two in terms of setting / resetting but primarily the purpose of using properties is to have additional data being sent to the REU on top of the group itself. for example if you wanted to set the REU to a user or a budget but also wanted a date sent the REU’s property lets you also send a date.

Oh okay. So they are the same. What is your suggestion on when to choice one over the other?

If you don’t need the group on the reusable then may as well use that.

Ya that was my thoughts. Which I do not need it. Currently the data is the only thing I need to pass through.

Thanks for the help?

well, you can pass any number and types of data that you need in your RE as properties instead of just passing a thing as a datasource. For example you can pass a string, a date, a number or a file from any page the RE is used in, not just a bubble thing.

Ya I noticed that. Also, decided to use property over the group data. Being able to name the property is helpful.

Thanks again for the help!

1 Like