INTERACT FORUM

Please login or register.

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

Author Topic: [20.0.115] RatingStars([Rating (ten stars)])  (Read 5947 times)

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
[20.0.115] RatingStars([Rating (ten stars)])
« on: June 26, 2015, 09:01:18 am »

Title says it all. Expression above does not generate the actual star characters that I want. I like that there is now a field type for ten stars, but I can't find any instruction on how to do this, if it exists. Is it possible? If so, what do?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41977
  • Shoes gone again!
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #1 on: June 26, 2015, 09:04:39 am »

You don't want to use an expression.

Just add the 10 star field to your view and it'll be filled with 10 stars automatically.
Logged
Matt Ashland, JRiver Media Center

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #2 on: June 26, 2015, 09:25:07 am »

How do you mean? Typing in [Rating (ten stars)] into the Thumbnail Text window just produces a number between 1 and 10.

Also, while I'm at it, how would I get Theatre View to use graphical ten-star ratings?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41977
  • Shoes gone again!
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #3 on: June 26, 2015, 09:54:47 am »

Ah, you mean for thumbnail text.

Next build:
NEW: Added the RatingStars10(...) expression function to show a 10 star rating field.
Logged
Matt Ashland, JRiver Media Center

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #4 on: June 26, 2015, 10:07:55 am »

Sweet!

Based on that, would entering "RatingStars10()" into the Rating expression in the file info panel for Audio in Theatre View options allow one to alter a given track's ten-star rating via the left and right swipes in Gizmo while it is playing, like one can currently do with the five-star ratings?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #5 on: June 26, 2015, 11:34:50 am »

If I understand correctly, Matt is adding a function that will work on fields that have store 10 star ratings.  That's the key:  There has to be a field defined that can STORE these 10 star ratings.  This new capability of a "10 star edit type" doesn't define any fields in the library to HOLD these ratings, as far as I can tell.

It's up to the individual user to decide whether or not to make a field to hold 10 star ratings.  To do so, you need to go to the library fields manager in Tools > Options > Library & Folders > Manage Library Fields.  Then Add a new library field.  I would give it a name like "Rating10", or something that makes it obvious.  Under "edit type", you select Ten Stars, and Data type of Integer.  That should make the field work.

From there, you can display that field, simply by selecting it in any view from the columns.  I tested it and it showed right up as a 10 star field that I could click in to set or clear up to 10 stars.  Neat.

Hope that helps,

Brian.
Logged

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #6 on: June 26, 2015, 01:43:43 pm »

Ahh, I see your meaning. You're right: that does work. Selecting my custom field, [Rating (ten stars)] as a column does produce an editable ten-star column. However, because I use a list style of thumbnails instead of details, I need to be able to output the star ratings via thumbnail text, which is what Matt is going to make possible in the next build, as seen above.

All of that deals with standard view, though. My second question concerned theatre view and whether or not the editable star rating that appears in playing now could be configured to use ten stars instead of five (or that of the customiseable display at the top of standard view, now that I think about it).
Logged

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #7 on: June 29, 2015, 07:59:06 pm »

Anybody know?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #8 on: June 29, 2015, 10:31:06 pm »

No. Neither can be, to my knowledge.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #9 on: June 30, 2015, 07:23:54 pm »

Ahh. How difficult would it be to implement? I realise that a lot of things that sound easy to do on paper actually aren't in reality--or at least, they're time-consuming. :P
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #10 on: June 30, 2015, 08:11:05 pm »

Dunno. I don't work for JRiver.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #11 on: July 01, 2015, 09:11:08 am »

I was just doing some experiments to see how RatingStars10() can be used in different places.  I created a Library field called Rating10, as type Integer and edit type 10 Stars.  It works as a displayed field and shows it's stars.

But trying to use the RatingStars10() function, I get nothing.  Well... I get those characters, RatingStars10 ,displayed where the function output should be.  I tried an expression column, thumbnail text, and display area text.  Same thing in all three places.  Literally, when using a field I have rated, I'll see something like this:

RatingStars10(7)

Where 7 is the rating I have that field by clicking on the stars.

I'm using the Mac version of JRiver, 20.0.124.  Maybe I'm missing something?

Brian.
Logged

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #12 on: August 01, 2015, 10:49:59 pm »

Just dropping in to say that I, too, am getting nothing from the RatingStars10() function. I've tried using the function by itself, and also like this:

Code: [Select]
RatingStars10([Rating (ten stars)])
...Where [Rating (ten stars)] is my user-defined ten-star rating field. Neither of these produce anything in thumbnail text.

What am I doing wrong?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #13 on: August 01, 2015, 11:08:26 pm »

I figured it out.  RatingStars10() takes an argument.  The argument is the *name* of the field.  Not the value of the field.  So, leave off the square brackets around the field name.  Yours would be written as:

RatingStars10(Rating (ten stars))

I tested it with my field and it worked.  Hopefully it works with yours too.  :)

Brian.
Logged

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #14 on: August 01, 2015, 11:17:15 pm »

Mine resulted in a right parenthetical mark.

I'll try rebuilding the field as one without parentheticals in it.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #15 on: August 01, 2015, 11:22:51 pm »

No need to rebuild.  You just need to escape the () characters.  Try this for your expression:

RatingStars10(Rating /(ten stars/))

The / character is an escape.  Otherwise, JRiver is trying to interpret the () as part of the function.  Hopefully that will work for you.

Brian.
Logged

Goatshade

  • Citizen of the Universe
  • *****
  • Posts: 651
Re: [20.0.115] RatingStars([Rating (ten stars)])
« Reply #16 on: August 01, 2015, 11:42:30 pm »

It worked. Thanks, man. :)
Logged
Pages: [1]   Go Up