Dataset filter by another dataset by code

I have two collections and two datasets on one page. I use the wix built in setting to filter one dataset by another dataset. It works. T
1.But I want to build it by code. Can wix editors suggest the link or code resources. ?

1 Like

Hello Chui,

You can query the result from the first dataset then set the value to the second dataset filter.
Check how you can filter a dataset using code -here
Check how to get a value from data -here

I hope this helps!
Best.

Massa

1 Like

Thanks Massa, I will try to study

  1. However,I found a bug in the built in setting. When I click on the particular row of a table ( the first selection), the repeater of the second collection change correspondingly as expected. This only works for a new row.
  2. When I clicked on the previous row of my first table, the repeate of my collection cannot show the change. Any suggestion?
    Thanks
    Joe