INTERACT FORUM

Please login or register.

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

Author Topic: Grouping by an expression which returns a List  (Read 1221 times)

Don W

  • World Citizen
  • ***
  • Posts: 185
Grouping by an expression which returns a List
« on: August 19, 2013, 05:28:32 pm »

Is it possible to define the return value of an expression such that the display treats it as a List?

Here's what I mean: Suppose I group by the field "Artist", which is a user field of type List. If a track has value for Artist = "A; B" then it shows up in both group "A" and group "B". Importantly, a group named "A; B" is not created. However, if I create an expression which simply returns  [Artist] and group by that expression, then the track doesn't show up in either "A" or "B", but instead shows up in "A; B". This is true for expressions and "calculated" fields.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Grouping by an expression which returns a List
« Reply #1 on: August 19, 2013, 08:43:58 pm »

For calculated expressions, add &datatype=[list] at the end of the expression to cast it into a list type.
Logged
The opinions I express represent my own folly.

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Grouping by an expression which returns a List
« Reply #2 on: August 19, 2013, 11:44:51 pm »

Perfect! Thanks!
Logged
Pages: [1]   Go Up