INTERACT FORUM

Please login or register.

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

Author Topic: Any way to generate ascending number list for a view?  (Read 3673 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Any way to generate ascending number list for a view?
« on: June 21, 2007, 07:52:43 am »

I want to add a column to my view which simply numbers each entry, starting at 1 and incrementing by 1 for each entry.  I tried using counter() but it updates every time the mouse moves over a row...  Any expression gurus have a solution?

Cheers,

Mark
 
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42381
  • Shoes gone again!
Re: Any way to generate ascending number list for a view?
« Reply #1 on: June 25, 2007, 04:35:29 pm »

Playlist views always show sequence, but library views can't. 

Since the expression engine doesn't know the list index of a file, this isn't a real trivial thing to add.
Logged
Matt Ashland, JRiver Media Center

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Any way to generate ascending number list for a view?
« Reply #2 on: June 26, 2007, 03:05:27 am »

Matt,

How about adding a new expression, sequence(), which does the same thing as counter() but the entry remains fixed, rather than updating each time the mouse passes over a row?  Or add a modifier to counter() so that it's behaviour can be changed to the required method?

Mark
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Any way to generate ascending number list for a view?
« Reply #3 on: June 26, 2007, 06:18:40 am »

Any reason to have sequence in a library view ?

..maybe it could be done another way.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Any way to generate ascending number list for a view?
« Reply #4 on: June 26, 2007, 06:52:08 am »

In my case I am using the view schemes to provide views which show things like my highest rated albums, sorted by average rating.  This cannot be done in a smartlist, which would include a sequence.  The view scheme is the only way (unless I missed something) of getting MC to do averaging of multiple fields.  So I get averaging, but no sequence.

Cheers,

Mark
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Any way to generate ascending number list for a view?
« Reply #5 on: June 26, 2007, 08:26:58 am »

I'm not sure if MC will allow you to display Album ratings in any view scheme other than, when viewed as Album thumbnails, that too, album ratings are only displayed when you hover over the thumb.

I've had to do this manually for a long time as there is no way, in my knowledge to calculate averages, and have them stored in a custom field which may then be displayed as desired in a pane or column.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Any way to generate ascending number list for a view?
« Reply #6 on: June 26, 2007, 09:22:14 am »

In a 'details' view scheme numeric fields are averaged for display and thus you can display your album averages in such a view.

Mark
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Any way to generate ascending number list for a view?
« Reply #7 on: June 26, 2007, 10:36:37 am »

Tried the details view but the Ratings column is still shown in 'stars'. How do get a numeric ratings value here ?

The other numberic fields are averaged tho.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Any way to generate ascending number list for a view?
« Reply #8 on: June 26, 2007, 10:49:58 am »

I use my own rating field, called My Rating, which is a numeric from 1-10; I found MC's 5 stars too restrictive.  I think the stars shown are also the average for the collection of entries under each detail row...

Mark
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Any way to generate ascending number list for a view?
« Reply #9 on: June 26, 2007, 11:08:18 am »

Just goes to show, with this app, there's always something new to be learnt :)

I'm with you now, you have a list of albums with ratings showing, sorted as you like.

So the need for the seq number in the viewscheme...

is it so you can have a album chart ?

that automatically updates itself as your ratings change.

nifty :D

if you could send to a playlist from the view scheme details
- then call a smarlist that references this playlist using a limiter like ~limit=-1,1,[Album], so you get 1 track/album.
- then from that smartlist, select all and send to yet another playlist which will be your final result.

You will have the seq on the left and everything should be in order.

Tedious :(
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Any way to generate ascending number list for a view?
« Reply #10 on: June 26, 2007, 11:50:09 am »

Yup, you got what I'm trying to do.

You are right about MC - there's always something to learn.  It's part of the fun, and part of the frustration :D

Mark




Logged

MrHaugen

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 3774
Re: Any way to generate ascending number list for a view?
« Reply #11 on: June 28, 2007, 12:55:38 pm »

I use my own rating field, called My Rating, which is a numeric from 1-10; I found MC's 5 stars too restrictive. 
Totally agree. Why not latting users get half starts. Or even better; costumizable graphics with higher granularity.
I use my own cusom fields for Artist, Album and track rating. Don't look as good, and it's less functional.
Logged
- I may not always believe what I'm saying

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Any way to generate ascending number list for a view?
« Reply #12 on: June 28, 2007, 01:18:54 pm »

I'm tempted to dump stars and go with a numeric field, but its the readability that stops me. I want the half stars too.

..kinda like a watch with hands that you just look at as opposed to a digital display that you have to read.
Logged
Pages: [1]   Go Up