Music Views - How to work with Operator (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,738
    10,707
    Kyiv
    Home Country
    Ukraine Ukraine
    Hmmm, this problem: ''''''
    Code:
    SQL: select * from tracks where  strAlbum <> '''''' group by strAlbum, strAlbumArtist  order by strAlbum asc, Filter: album
    Maybe need this field leave blank, i.e. do not enter anything there ...
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,738
    10,707
    Kyiv
    Home Country
    Ukraine Ukraine
    Or try this: <>
    Code:
    ifnull(length(strAlbum), 0) = 0
     

    joEhSuper

    MP Donator
  • Premium Supporter
  • June 2, 2011
    1,012
    589
    Home Country
    Austria Austria
    Ooooo K?!? Just to be sure...:unsure:
    You want me to write this into the restriction field: ifnull(length(strAlbum), 0) = 0
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,738
    10,707
    Kyiv
    Home Country
    Ukraine Ukraine
    Yes if empty field not work :)

    -- Tapatalk | WBR, ajs
     

    joEhSuper

    MP Donator
  • Premium Supporter
  • June 2, 2011
    1,012
    589
    Home Country
    Austria Austria
    I'm really sorry - but it's still the same :cry:
    14-32-46.png
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,738
    10,707
    Kyiv
    Home Country
    Ukraine Ukraine
    @joEhSuper I think i found solution:
    Operator: =
    Restriction:
    Code:
    CASE LENGTH(TRIM(strAlbum)) WHEN 0 THEN '---' ELSE strAlbum END;
     

    joEhSuper

    MP Donator
  • Premium Supporter
  • June 2, 2011
    1,012
    589
    Home Country
    Austria Austria
    Code:
    CASE LENGTH(TRIM(strAlbum)) WHEN 0 THEN '---' ELSE strAlbum END;
    Now the album list is emty :confused:
     

    Users who are viewing this thread

    Top Bottom