More > JRiver Media Center 30 for Windows
Code needed for showing if any items are not checked
wheel54:
So my current view has a grid icon like display sorted by the custom field "groupings" (which is just a way for me to sort music that belongs together imo) with the thumbnail text set to:
[Grouping]
<font size="80" alpha="50">formatnumber(GroupCount(Album), 0, no albums, albums, album)<//font> | If([Duplicate], ✔, ??)
I'm using the custom "duplicate" field to mark albums I've sorted. I would like to put a ✔ on the main display for any grouping with all albums sorted in that group (all songs have a non-blank duplicate field), however what is happening is that it shows "??" correct on a group where no filtering is done and the field is empty, but as soon as I go through one of the albums and set the value to 1 or 2 or whatever, even though there are other albums that need to get done, the subtext is getting the ✔ displayed using the code above.
Basically I only want it to show that if all the songs in that grouping are done / have an entry entered for the "duplicate" field.
wheel54:
Still really struggling with this. Like every function I try to use seems to prioritize the positive results over the negative one.
I simply want the empty result to be prioritized, there must be some way to word it so it does that. In a group with 4 albums, if it finds one album with fields and 3 albums have no fields it always reports back as fields found, instead of what I want, it to indicate when there are missing fields for the result.
blgentry:
I can't decipher what you are trying to do or what you see. It might be helpful to post screen shots showing what you are doing and what you see.
Best of luck.
Brian.
wheel54:
Hmm, I can do that later, but I'm not sure it would help that much. Basically in category view you have the custom thumbnail text - you can enter the expressions here.
When you double click an item in category view it opens it up, showing the contents (albums in this case).
So basically the hierarchy is this:
Grouping (subtext) -> Album(s) (subtext).
Say there's 5 Albums under the parent grouping. If all 5 albums have an empty duplicate field, they return "??" as per the code, both individually and in the main parent grouping.
But as soon as 1 album has values for the duplicate field, in BOTH the album subtext and grouping (parent) subtext the ?? changes to a check mark. I want it only to happen in the Album subtext until the entire grouping has values, only then would it change the ?? to a checkmark. But currently that changes over the second any track has a value in the duplicate field, and only stays ?? while the values are all absent.
blgentry:
You're going to need someone who's better with the Expression Language than I am.
I see what you are saying: The display is ORing the value of [Duplicate] for any Album or "Grouping". You want it ANDed instead. I don't think the grouped displays are designed to do that. This might be a case where you need to use Global Variables in order to calculate a value per album, as a separate variable. Global Variables are good for that kind of thing, but they are quite confusing; I haven't used them in a number of years.
Hopefully one of the other members that's really skilled with this will respond to your question.
Best of luck to you.
Brian.
Navigation
[0] Message Index
[#] Next page
Go to full version