More > JRiver Media Center 21 for Windows

Global var issue and musings

<< < (4/7) > >>

mark_h:
Ah, that's very useful.   Funnily enough I'd recently just used variables to do just the same on a view, so this shortcut is very handy.

vagskal:
Sorry, I do not fully understand.

The example you gave worked, but it did not work when I tried to display [File Type] /(GroupCount() files, GroupCount([Artist]) artists/) - The GroupCount([Artist]) always showed 0 (I tried it with [Name] instead of [File Type]). When is GroupCount([field name]) useful.

I was not able to use the new expressions in thumbnail text. Is there any way to do that?

If we I can get this to work I think I would need a FormatGroupText(multiple items, one item, no item) expression to get a nice display.

EDIT: I realised now that is should be GroupCount(Artist), then it works. What are the valid parameters inside GroupCount()?

Matt:

--- Quote from: vagskal on August 14, 2013, 12:24:33 pm ---What are the valid parameters inside GroupCount()?

--- End quote ---

Empty for a numeric count of the group.

Any field name for a count of unique values in that field for the group (ie. number of artists, number of albums, etc.).

vagskal:
Thanks! Now that was a lightning fast reply!

EDIT: I guess there is a valid reason why fields are not written with brackets inside precisely that function, but it confused me. I wonder if I can put an expression inside GroupCount()... Lots of things to try out. Thanks!

Matt:

--- Quote from: vagskal on August 14, 2013, 01:04:04 pm ---EDIT: I guess there is a valid reason why fields are not written with brackets inside precisely that function

--- End quote ---

A field in brackets is shorthand for the Field(...) function.

So:
[Artist]

Expands to:
Field(Artist)


So:
GroupCount([Artist])

Becomes:
GroupCount(Field([Artist]))

Becomes:
GroupCount(Abba)

The program doesn't understand GroupCount(Abba), but it would understand GroupCount(Artist).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version