Posts: 1,332
Joined: Jan 2016
Reputation:
54
Try adding container. So what ever you list Id is $INFO[Container (Id).Listitem.Label] ... Worth a try at least..
Posts: 143
Joined: Feb 2017
Reputation:
0
2017-04-12, 22:08
(This post was last modified: 2017-04-12, 22:13 by baza_dwa.)
1. I am not in context of MyMusicNav or MyVideoNav. I am in context of custom dialog called directly from Home screen. Neither MyMusicNav nor MyVideoNav has been called yet.
2. There is no word in documentation about using List only for non-interactive content.
3. Used button in <itemlayout> on the presumption, that using label in <itemlayout> and button in <focusedlayout> would cause creating unneeded extra controls and redraw problems when refreshing control (another problem I am experiencing). In other way, I assumed both layouts would use the same control.
3. onclick for list is not included in the documentation, so I have not tried it, but it doesn't work anyway:
<onclick>ActivateWindow(video,$INFO[ListItem.FolderPath])</onclick>
if the list's <content> is videodb://
And the purpose is to open fe. MyVideoNav with already limited content.
Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
You shouldn't need a button to open the contents from videodb://.
Posts: 7,806
Joined: Feb 2013
Reputation:
1,486
What's the videodb:// path that you tried?
Also, why doesn't your list control have an id?
How are you even focussing it, if it doesn't have an id?
Posts: 143
Joined: Feb 2017
Reputation:
0
The path is exactly "videodb://" and looking at the result, it is the right one.
Somewhere I read that id is not always required - just when needed.
For now I use it with mouse - no problems.
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
kodi.log will help a little.
Also notepad++ with the XML plugin is good for a quick check of code..
Posts: 7,806
Joined: Feb 2013
Reputation:
1,486
Because I tried it from Home.xml not a dialog. Dialogs need to be closed before opening another window. If you need to create a dialog type effect that has library or plugin content in it, you are better off faking it by making an include and including it any window you need it and using a visibility condition to show/hide it rather than making a custom window dialog.
Posts: 143
Joined: Feb 2017
Reputation:
0
Thanks, works at last!
Just an issue - when I am returning from fe. MyVideoNav, my dialog is still visible. I control its visibility with a Property. There is no way I know of to unset the property when clicking an item on the list.
Can you suggest some elegant way to solve this issue? I could unset the Property on each window on loading, but I don't think it's nice.
Posts: 17,405
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,405
Use onunload from the home window.