I have a button that changes the filter on a gallery. My button starts with "Gallery1.Items=Filter(" however, I have a red line under Items and it says "Name isn't valid. This identifier isn't recognized".
Solved! Go to Solution.
You can't manipulate values directly.
One option would be to set a variable:
[myButton.onSelect]
Set(varFilter, 1)
Depending on the value of this variable you can now change your filter in the gallery:
[myGallery.Items]
Switch(varFilter,
1, Filter([your filter statements]),
2, Filter([your other filter statements]))
That's maybe not the most elegant way to do this but it demonstrates the functionality.
You can't manipulate values directly.
One option would be to set a variable:
[myButton.onSelect]
Set(varFilter, 1)
Depending on the value of this variable you can now change your filter in the gallery:
[myGallery.Items]
Switch(varFilter,
1, Filter([your filter statements]),
2, Filter([your other filter statements]))
That's maybe not the most elegant way to do this but it demonstrates the functionality.
Hi ,
By introducing a variable in the formula of the control's property, you can dynamically modify properties using other controls. But what you are trying to do is not possible , as the properties can't be manipulated in this fashion.
User | Count |
---|---|
257 | |
110 | |
97 | |
52 | |
39 |