home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
working on: filter in music views reloaded
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JulianBuss" data-source="post: 70173" data-attributes="member: 10499"><p>donnow, maybe you can archive your goals with my modification. </p><p>What I do in the background: I have one common SQL select statement used for all views (including the custom views):</p><p></p><p>[code]</p><p>select album.idAlbum,album.strAlbum,artist.idArtist,artist.strArtist,song.idSong,song.strTitle,genre.idGenre,genre.strGenre,song.iTrack,song.iDuration,song.iYear,song.iTimesPlayed,song.iRating,song.favorite,path.strPath,song.strFileName from song,album,artist,genre,path</p><p>[/code]</p><p></p><p>together with one common where clause:</p><p>[code]</p><p>where song.idAlbum = album.idAlbum and song.idArtist = artist.idArtist and song.idGenre = genre.idGenre and song.idPath = path.idPath</p><p>[/code]</p><p></p><p>and with a group by and order by clause depending on the first view level, for example for a view showing the genre first:</p><p>[code]</p><p>group by strGenre order by strGenre</p><p>[/code]</p><p></p><p>You can extend this automatically generated SQL by your own additions to the where clause, for example:</p><p>[code]</p><p>strGenre like '%Pop%'</p><p>[/code]</p><p></p><p>Because the select statement includes all useful information from all tables, you can add where clauses as you like. </p><p></p><p>So as far as I can see your requirements should be doable. If not we have to talk again. </p><p>But we have to keep in mind that this is quite a power feature for very specific users. It must not interfere with the simple way to define custom views. </p><p>[/code]</p></blockquote><p></p>
[QUOTE="JulianBuss, post: 70173, member: 10499"] donnow, maybe you can archive your goals with my modification. What I do in the background: I have one common SQL select statement used for all views (including the custom views): [code] select album.idAlbum,album.strAlbum,artist.idArtist,artist.strArtist,song.idSong,song.strTitle,genre.idGenre,genre.strGenre,song.iTrack,song.iDuration,song.iYear,song.iTimesPlayed,song.iRating,song.favorite,path.strPath,song.strFileName from song,album,artist,genre,path [/code] together with one common where clause: [code] where song.idAlbum = album.idAlbum and song.idArtist = artist.idArtist and song.idGenre = genre.idGenre and song.idPath = path.idPath [/code] and with a group by and order by clause depending on the first view level, for example for a view showing the genre first: [code] group by strGenre order by strGenre [/code] You can extend this automatically generated SQL by your own additions to the where clause, for example: [code] strGenre like '%Pop%' [/code] Because the select statement includes all useful information from all tables, you can add where clauses as you like. So as far as I can see your requirements should be doable. If not we have to talk again. But we have to keep in mind that this is quite a power feature for very specific users. It must not interfere with the simple way to define custom views. [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
working on: filter in music views reloaded
Contact us
RSS
Top
Bottom