2020-05-10, 04:13
I think the answer is no. Seems like it would be worth displaying it for the user, rather than just showing the is filtered bool.
scott s.
.
scott s.
.
(2020-05-11, 06:02)scott967 Wrote: Thanks. Figured as much. I was playing around with music videos, trying to improve some display, and it seemed like using filter might help, but I don't think it is really useful without giving user feedback on what filter rule is in effect.
scott s.
.
- return just changed props as labelxml:<control type="button">
<visible allowhiddenfocus="true">string.isequal(system.currentcontrolid,-79)</visible>
<onfocus condition="String.IsEmpty(Window(home).Property(label79_defaultlabel))">SetProperty(label79_defaultlabel,$INFO[system.currentcontrol],home)</onfocus>
</control>
<control type="button">
<visible allowhiddenfocus="true">string.isequal(system.currentcontrolid,-79) + !string.isempty(Window(home).Property(label79_defaultlabel))</visible>
<onfocus condition="!string.isequal(system.currentcontrol,Window(home).Property(label79_defaultlabel))">SetProperty(label79_returninglabel,$INFO[system.currentcontrol],home)</onfocus>
</control>
(2020-05-12, 14:21)jurialmunkey Wrote: @mardukL - I already tried that. Unfortunately it only works for the couple of filters that use sliders (e.g. Ratings, Year).
It won't work for any of the filters that are buttons or edit controls - which are most of them. Anything where the value is in label2 won't work.
e.g. for Genres is only shows "Genre [#]" and doesn't actually show the selected genres.
xml:<control type="button">
<visible allowhiddenfocus="true">false</visible>
<onfocus condition="String.IsEqual(GetLabel(1),$LOCALIZE[135]) + ListItem.IsSelected">SetProperty(stored_genre_item1,$INFO[ListItem.Label],home)</onfocus>
<onfocus condition="String.IsEqual(GetLabel(1),$LOCALIZE[135]) + ListItem.IsSelected + !String.IsEqual(Window(home).Property(stored_item1),$INFO[ListItem.Label])">SetProperty(stored_genre_item2,$INFO[ListItem.Label],home)</onfocus>
.
.
.
</control>