INTERACT FORUM

Please login or register.

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

Author Topic: Nested view (standard and theater)  (Read 1741 times)

raldo

  • Citizen of the Universe
  • *****
  • Posts: 1102
Nested view (standard and theater)
« on: December 08, 2011, 05:05:12 pm »

I've created a custom field called .Places which is assigned Replace([Places],/,,\)

This successfully replaces the commas in Places with backslashes. My intention is to use this to make a nested standard/theater view.

But my view just shows one item per .places and not something that can be drilled into. What am I missing here?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Nested view (standard and theater)
« Reply #1 on: December 08, 2011, 05:09:42 pm »

Tack &datatype=[list] to the end of your expression:

   Replace([Places], /,,\)&datatype=[list]
Logged
The opinions I express represent my own folly.

raldo

  • Citizen of the Universe
  • *****
  • Posts: 1102
Re: Nested view (standard and theater)
« Reply #2 on: December 08, 2011, 05:25:31 pm »

Using your modified expression (copy paste) still results in one item only.

Does the view have to be set up somehow to make it nested?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Nested view (standard and theater)
« Reply #3 on: December 08, 2011, 05:33:05 pm »

Add the expression as a new pane in a panes view.  Add a new column, an Expression column, and enter that expression there.

See: http://wiki.jriver.com/index.php/Media_Center_expression_language#Specify_data_types_for_expression_based_fields
Logged
The opinions I express represent my own folly.

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Nested view (standard and theater)
« Reply #4 on: December 08, 2011, 06:01:00 pm »

To be more clear...

Just keep your Places field as is.

Then, in a Panes view, right click a Panes header, and either Add Category To Left... or Add Category To Right..., depending upon where you want it.

Now, in the Category column edit box, select Expression, and paste the above expression into the Expression area. Set the Name to the name you want for the column.  Set the sort to Ascending or Descending as you see fit.

Now, your Places field will be expanded in the pane.  No need for [.Places], your other places field.
Logged
The opinions I express represent my own folly.

raldo

  • Citizen of the Universe
  • *****
  • Posts: 1102
Re: Nested view (standard and theater)
« Reply #5 on: December 10, 2011, 05:24:35 am »

That works, thanks!
Logged
Pages: [1]   Go Up