is it possible to display the value in filter title outside MyVideoNav.xml ?
#1
I mean when I go out of "MyVideoNav.xml" I want to display the filter title value on the header for example.

I make some test from this info :
https://kodi.wiki/view/List_of_Built_In_...deoNav.xml

Read this thread but it is a bit dated :
https://forum.kodi.tv/showthread.php?tid=354294

The best I can is to displayed an info if there a filter or not with booleen :
 
xml:
Container.Filtered

Any suggestion or answer are welcome
Thanks
Reply
#2
I would imagine you can do it by passing the value to a window property inside myvideonav.xml, that you will then be able to access outside of that window
Reply
#3
This might work?

In the container you're using within myvideonav.xml, add a hidden button that will set a window property every time your container is filtered and the focused item changes. You can then access that window property from anywhere. Depending on your use case, you might want the window property to keep its value until it's overwritten when a new listitem meets the condition on the hidden button, or you might need to add a line to clear it somewhere.

xml:

Control type="list">
   ...
   <focuseditem>
      <control type="button>
         <visible allowhiddenfocus="true">false</visible>
         <onfocus condition="Container.Filtered">SetProperty(Filtered_Item,$INFO[ListItem.Label],home)</onfocus>
      </control>
   </focuseditem>
</control>

Then outside of myvideonav.xml, you can read this window property with:

xml:

$INFO[Window(home).Property(Filtered_Item)]
Reply
#4
(2022-05-22, 10:19)QuizKid Wrote: This might work?

I understand your code and the idea. 
This made me do some tests with your code and with other way.

In fact, the solution is a bit simpler.

xml:
$INFO[Control.GetLabel(19).index(0)]
  => displays the label "filter" in your language outside of myvideonav.xml,

xml:
$INFO[Control.GetLabel(19).index(1)]
   => displays the "value" use to filter title outside of myvideonav.xml,

Anyway thanks a lot to have take some time for answer
Reply

Logout Mark Read Team Forum Stats Members Help
is it possible to display the value in filter title outside MyVideoNav.xml ?0