INTERACT FORUM

Please login or register.

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

Author Topic: Adding a static count to views?  (Read 2101 times)

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Adding a static count to views?
« on: August 30, 2012, 06:49:08 am »

Has anybody figured out how to add a static count to a view yet?  In other words a column starting at 1 and counting downwards?

I want to add a position number against entries in some views but so far I think this is still impossible...  Anybody?

Cheers,

Mark
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Adding a static count to views?
« Reply #1 on: August 30, 2012, 02:28:28 pm »

Quote
Has anybody figured out how to add a static count to a view yet?

Only in a limited way. Any playlist (not smartlist) view, including Playing Now, includes an internal Seq#. That can be captured and assigned to a variable with Save(CustomData(#), Var.Seq.[Filename], 1). If used in Playing Now, for example, the variable could be used to display the play sequence number in a view. To add a simple sequence number to a regular view, I suppose you would have to send the contents of the view to a list that captured the sequence. That's not very practical, as the list would have to be cleared, the current view contents sent to it, then the list refreshed before the results would be available to the target view.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Adding a static count to views?
« Reply #2 on: August 31, 2012, 02:11:00 am »

Thanks, Rick.

What is the third parameter to save() ?

[edit]Never mind, I remember now![/edit]
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: Adding a static count to views?
« Reply #3 on: August 31, 2012, 04:03:18 am »

Quote
[edit]Never mind, I remember now![/edit]

That's right. It's 'Keep' (1 to output the value, default 0). ;)
Logged
Pages: [1]   Go Up