shuldnt this work?
---
i try to show a different list depending on a condition, nothing i did try work.
1st try -> see aboth
2nd try:
use 2 different Views (ID="50" default - ID="53" special) and work with visibles:
shouldnt this work?
EDIT: to be shure Kodi goes always to List id="53" (if visible), i did also use "<defaultcontrol always="true">53</defaultcontrol>" which also doesnt seems to work! -> (it alway uses the last choosen view) /EDIT
---
i set the property by "oncklick" and "onload" (propetry seems to be set, as i can show it as a label)
onklick:
onload (myvideoNav.xml)
-
out of ideas how else i can achieve what im after
(+ also not shure why the stuff i already try doesnt work
)
what do i try to achive?:
A File-List(-style) / or View, which should only show up if the property (or an other matching given condition) is true..
i can easily show other elements (labels, images, dummylists, ..) in a View depending on the property via "<visible>" but as soon as i like to have a different list (fixedlist / list), nothing i try works..
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
<!-- Default File List -->
<include name="Viewtype50">
<include condition="IsEmpty(Window.Property(SpezList))">DefaultFileList</include>
<include condition="!IsEmpty(Window.Property(SpezList))">SpecialFileList</include>
</include>
</includes>
---
i try to show a different list depending on a condition, nothing i did try work.
1st try -> see aboth
2nd try:
use 2 different Views (ID="50" default - ID="53" special) and work with visibles:
PHP Code:
<!-- List -->
<control type="list" id="53">
<left>870</left>
<top>184</top>
<width>1050</width>
<height>720</height>
<onup>53</onup>
<ondown>53</ondown>
<onleft>close</onleft>
<onright>63</onright>
<pagecontrol>63</pagecontrol>
<orientation>vertical</orientation>
<viewtype label="$LOCALIZE[535] (Spez)">list</viewtype>
<scrolltime tween="sine" easing="out">240</scrolltime>
<visible>!IsEmpty(Window.Property(SpezList))</visible> <!-- <- doesnt Work! (-> the view wont show up) -->
<itemlayout height="76" width="1050">
....
</itemlayout>
shouldnt this work?
EDIT: to be shure Kodi goes always to List id="53" (if visible), i did also use "<defaultcontrol always="true">53</defaultcontrol>" which also doesnt seems to work! -> (it alway uses the last choosen view) /EDIT
---
i set the property by "oncklick" and "onload" (propetry seems to be set, as i can show it as a label)
onklick:
PHP Code:
<control type="button" id="8101">
<width>970</width>
<height>42</height>
<font>Font33</font>
<label>31163</label>
<textcolor>DialogTextColor2</textcolor>
<focusedcolor>DialogTextColor1</focusedcolor>
<invalidcolor>TextColor4</invalidcolor>
<disabledcolor>TextColor4</disabledcolor>
<onright>SetProperty(SpezList,true)</onright>
<onclick>SetProperty(SpezList,true,video)</onclick>
<onright>ActivateWindow(Videos,sources://video/)</onright>
<onclick>ActivateWindow(Videos,sources://video/)</onclick>
</control>
onload (myvideoNav.xml)
PHP Code:
<onload condition="Window.Previous(settings)">SetProperty(SpezList,true)</onload>
<onunload>ClearProperty(SpezList)</onunload>
-
out of ideas how else i can achieve what im after
(+ also not shure why the stuff i already try doesnt work

what do i try to achive?:
A File-List(-style) / or View, which should only show up if the property (or an other matching given condition) is true..
i can easily show other elements (labels, images, dummylists, ..) in a View depending on the property via "<visible>" but as soon as i like to have a different list (fixedlist / list), nothing i try works..