Posts: 219
Joined: Feb 2012
Reputation:
0
In MyMusicNav.xml I have placed an edit control whose id is 8.
Now according to wiki , it should act like search box , typing something in to which will display all matching items
throughout database.
When I open Songs the window displays list of songs.
But even if I type matching string in edit/search box it always displays empty view with no items why?
Does it search or something is wrong.
Please Help.
Thank You.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2012-04-16, 18:09
(This post was last modified: 2012-04-16, 18:09 by `Black.)
Working fine here. How does your edit control code look?
Posts: 219
Joined: Feb 2012
Reputation:
0
Hi `Black This time I wrote in MyMusicNav.xml:
<control type="edit" id="8">
<description>Search text box</description>
<posx>400</posx>
<posy>5</posy>
<width>500</width>
<label>Search</label>
<visible>true</visible>
<texturefocus>buttonFO.png</texturefocus>
<texturenofocus>buttonNF.png</texturenofocus>
</control>
But still it's not working like "search", when I tyoe something in the box all items becomes invisible means empty list showing that search could not find any result.
But when I change the id to 19 it works perfectly like "Filter".
How is it possible that if Filter searches only in current list labels it finds some thing and if search searches in entire database it could not find the same string.
Help Help Please !!
Posts: 219
Joined: Feb 2012
Reputation:
0
Hey I am trying to make an edit control the search box by assigning it's id = 8 , but in confluence and many other skins they have taken this control as button. Means search should be a button instead of box?
But Wiki tells it can be edit control.
Please Please Some one Help, Thanks !!
Posts: 17,549
Joined: Aug 2007
Reputation:
597
Hitcher
Team-Kodi Member
Posts: 17,549
Check you haven't got another control using the same ID.
Posts: 219
Joined: Feb 2012
Reputation:
0
I checked it , it's at only one place.
Is it necessary to make it a button?
Posts: 219
Joined: Feb 2012
Reputation:
0
OK so If I have to do that any how , then what way will you suggest?
May be scripting will help ,or some thing else.
I want a search box in MyMusicNav.xml.
Typing into to search box should search the string in entire music database and should show the matching items in the panel container.
How can I do it. Please tell me.
Thanks for help in advance.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Edit control works fine here... so you can use a button or edit control. Maybe you don't get any results because of visible conditions you used for the list? Does it work in other skins?
Posts: 4,060
Joined: Mar 2010
Reputation:
94
What about global search script? Maybe give it a try?