INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Using Expressions, are "if, then" lists possible?  (Read 1023 times)

JaredH

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 520
  • Superfluously Articulate
Using Expressions, are "if, then" lists possible?
« on: April 27, 2005, 11:07:29 pm »

Ok, I hope I can explain this correctly.

What I would like, is for the list to show multi-disc albums in disc then track order.

Now I don't have the Disc# and Track# added into my sorting scheme. Simply because, when I choose a whole Genre, instead of showing everything in alphabetical order based on Artist first then Name second, if the Disc# and Track# are in the view scheme, then that entire list is thrown off. It's a tricky situation. Track# by album works fine when activated in the options, so there is no need to add that type of sorting in the view scheme. However, Disc# is not linked to track number, so in order to get multi disc albums to show up in disc order followed by track order, I've had to resort to adding a Disc# and Track# column in my list view scheme. Then whenever I want to see the album listed in disc order, I just click the Track # column header and it straightens the list out for me.

Of course this is only temporary as I have the "Do not remember header clicks across views". That in and of itself is also a bit of a catch 22, because if I deactivate that option, I find myself having to go back and fix views that have been wrongly clicked and have resulted in misordered lists.

Now, after that long winded explanation, what I'm trying to figure out is this: Is there anyway to compile an "if, then" database expression that would sort, by disc# then track #, only multi-disc albums, thus leaving the other lists to adhere to the default view scheme?

Of course, this could all be fixed if all of you hardcore thinkers over there at J River could figure out a way to tie Disc# to Track#...  ;)
Logged
J. A. Hayslett

Blog & Gallery - http://www.bgracetfaith.net

EpF

  • Citizen of the Universe
  • *****
  • Posts: 649
Re: Using Expressions, are "if, then" lists possible?
« Reply #1 on: April 27, 2005, 11:38:32 pm »

The 'If' function automatically implies 'then', but I don't think you can do what you want because I don't think you can include sorting in an expression.

You could use:

If(IsEqual([album type], Multiple artists), FormatSort([Disc #],[Track #]), FormatSort([default])

Except that FormatSort doesn't exist!!  Hopefully J River will expand the Expression Evaluator in the next version..  In the meantime, have you checked out the official help page:

http://www.jrmediacenter.com/DevZone/DBExpressions.htm

?  There are also a number of threads which go into more detail about Expressions.  Do a search; especially for posts by user StiX.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Using Expressions, are "if, then" lists possible?
« Reply #2 on: April 29, 2005, 10:40:34 am »

If I understand correctly, using a sorting like this should work:

Genre
Artist
Disc Number
Track Number

It'll handle multi-artist lists, and single artist lists.  You can also save a sorting as a preset so it's easy to get to in Customize Current View.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up