INTERACT FORUM

More => Old Versions => Media Center 15 (Development Ended) => Topic started by: Saucepan on December 28, 2010, 07:37:28 pm

Title: Need some help making a numbered list in a Library View
Post by: Saucepan on December 28, 2010, 07:37:28 pm
What I'm looking to do:

In the Audio section, I've created a view for my albums. Now I want to know if there is an expression that will 'number' each record. It's intended to create a list of my top records. They are sorted by ratings and a few other variables, but I need numbers, so I can see where the albums rank exactly.

Is this able to be done? I've tried putting in the counter() expression, but I can't get it to work to my satisfaction.
Title: Re: Need some help making a numbered list in my Album View
Post by: Saucepan on December 30, 2010, 07:10:22 pm
C'mon Beta Team!! Help me on this!
Title: Re: Need some help making a numbered list in my Album View
Post by: marko on December 31, 2010, 01:22:45 am
I'm not sure that this is do-able. "Counter" will not work in a library view as it will keep on counting as the view is refreshed.

If you give us more detailed information to work with, it will help you to obtain a more precise answer. Include screenshots if you feel they might help.

Is this "Number" to be a dynamic value? IE As the albums shift around in the sorted list, does the first entry always need to be "1" regardless of the album?

Where/How will you be using this number value? Are you using a smartlist or a library view?

Are you using album thumbnails or a full file list grouped by album?

-marko
Title: Re: Need some help making a numbered list in my Album View
Post by: Saucepan on December 31, 2010, 01:43:55 am
Thank you marko.

"Is this "Number" to be a dynamic value? IE As the albums shift around in the sorted list, does the first entry always need to be "1" regardless of the album?"
Yes.

"Where/How will you be using this number value?"
I want it to be displayed just like any other field (Artist, Album, Year etc...). Think of it like a Billboard Top 100. The numbers will stay the same while the albums shift around depending on how they are rated.

"Are you using a smartlist or a library view?"
This is a library view.

"Are you using album thumbnails or a full file list grouped by album?"
Either would be ok. Album Thumbnails preferably.
Title: Re: Need some help making a numbered list in a Library View
Post by: Saucepan on January 02, 2011, 01:49:38 pm
a-anyone?
Title: Re: Need some help making a numbered list in my Album View
Post by: rick.ca on January 02, 2011, 06:18:25 pm
I'm not sure that this is do-able.

Coming from marko, most of us would interpret this as "not humanly possible." Your options are therefore...

Title: Re: Need some help making a numbered list in a Library View
Post by: JimH on January 02, 2011, 06:31:23 pm
Lightning strikes twice sometimes.
Title: Re: Need some help making a numbered list in a Library View
Post by: Saucepan on January 02, 2011, 07:10:31 pm
I bet it's possible. C'mon gappie...
Title: Re: Need some help making a numbered list in a Library View
Post by: rick.ca on January 02, 2011, 08:16:12 pm
Lightning strikes twice sometimes.

Oops. I must have used the _-word.  :-X
Title: Re: Need some help making a numbered list in a Library View
Post by: Saucepan on January 09, 2011, 07:44:58 pm
bumping, in case anyone wants to make my week
Title: Re: Need some help making a numbered list in a Library View
Post by: BryanC on January 09, 2011, 09:29:06 pm
ListItem?
Title: Re: Need some help making a numbered list in a Library View
Post by: marko on January 10, 2011, 02:22:24 am
I have thought about this, and tried a few things out, just in case they worked, and they didn't.

I can't see a way to achieve this, and here's why...

Expressions can only work on the tags or file status, for any given single file. There is no way to assign value X to file A, then go to file B and say "make value X equal the same as file A plus one.

There's no way to reference the sequence number from a playlist, not even in the playlist itself viewed as album thumbnails.

I thought we might get somewhere with listitem(), but in order for that to be any use, we first have to force all of the album values present in the dynamic list into a single field that is applied to every file in the list, in the order that they appear in the list. I was not able to make that happen.

I tried some fancy math stuff based off the track # field, but that failed too.

Sorry saucepan, but unless someone else can see a different angle of attack for this one, I have to say it's not achievable. rick.ca recently came up with a neat keywords solution that I hadn't seen, proof there that he sees other angles for stuff, but not this one.

The playing field for expressions is massive, really, really, massive, but it does have boundaries. I think you will have to accept that you have reached a boundary with this one.

Regards,
-marko
Title: Re: Need some help making a numbered list in a Library View
Post by: Vincent Kars on January 10, 2011, 02:59:38 am
Have a look at Playlist
A 'normal' Playlist has a column Seq, the sequence in the list.
Maybe this column can be used to create a numbered list.
Title: Re: Need some help making a numbered list in a Library View
Post by: marko on January 10, 2011, 04:10:13 am
There's no way to reference the sequence number from a playlist, not even in the playlist itself viewed as album thumbnails.
Title: Re: Need some help making a numbered list in a Library View
Post by: Vincent Kars on January 10, 2011, 04:27:00 am
Looks like this yields the Seq

CustomData(#)
Title: Re: Need some help making a numbered list in a Library View
Post by: marko on January 10, 2011, 12:33:13 pm
CustomData(#) will number files, starting from 1, from first to last in the list, but only does so when used in the "Rename, Move & Copy Files..." tool.