Hello Axurers,
I have
- an inner dynamic panel with multiple states (English and Mandarin) in a repeater in an outer dynamic panel
- a text field that adds a filter to the repeater OnTextChange
- a repeater with English and Mandarin fields
- a button that changes the state of the dynamic panel, i.e. all the items will change
What I want to do
- OnTextChange, filter the English field if the state of the dynamic panel is in English
- OnTextChange, filter the Mandarin field if the state of the dynamic panel is in Mandarin
- with the filter on, change states and maintain the filter
I can already do 1 and 3, however, having both 1 and 2 is a problem.
Problem
When I add an extra condition: “State of Panel is equal to English”, then the filter doesn’t work.
Here is the culprit in the red rectangle:
Without the extra condition the filter works, however, I would be unable to choose whether to filter the English field or the Mandarin field.
Other Issues
As mentioned before, without the extra condition, the filter works, however, any text changes would change the state of the dynamic panel back to the default state (I tried switching the order of the states and it does indeed change to the first state). Would it be possible to update the filter without changing the state back to the default?
Showing all items containing “o” in the English field:
Click on Change All to change the state to “Mandarin” while keeping the filter on:
Now any changes to the text field will automatically set the state of the dynamic panel to English.
Here’s the sample
https://ih4mt9.axshare.com/#g=1&p=home
Filter Repeater With Multiple State DP.rp (70.3 KB)
Wow, that took much longer to explain than I expected. I hope it makes sense. Thank you for reading all the way to the end.