Data provider filter via a custom query #12192
-
Hey, How can i filter my table that comes from a custom query? Let's say I have a page1 when I choose an option from the table in page1, I wanna filter the data in page2 based on my choice in page1 how can I approach this with custom queries? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @Mozix, It sounds like you want to persist a value through state. Then use this saved value as the binding of your query on the second page. I've linked the documentation above for persisting/state in general. I'm assuming from what you've written that you already know how to create a binding for a custom query. All thats left is to save the second value to state with persist checked whenever a row is clicked. Then reference the created state in your data provider settings If you need an example after this explanation, let me know and I'll do one up for you. I hope this explanation helps. |
Beta Was this translation helpful? Give feedback.
Hey @Mozix,
Sorry for the delay on responding to this one. Below are the steps I used to create a few simple exmaple.
Pet Type
.End result
I hope this helps.