INTERACT FORUM

Please login or register.

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

Author Topic: Rename problem with calculated fields  (Read 855 times)

Flavio61

  • Recent member
  • *
  • Posts: 24
Rename problem with calculated fields
« on: November 19, 2012, 12:55:18 pm »

In my library I have a calculated fileds:

[ComposerSort] = =if(regex([Composer], /#^(.+)\s+([^[\s]+)\s\[#/), [R2]/, [R1], [Composer])

I entered this field in my rules of renaming folders ([ComposerSort]\[Album])

This is the result:

[Composer] Ludwig van Beethoven [1900-2000] (I know the dates are wrong)
[ComposerSort] Beethoven, Ludwig van
Folder Name "=Beethoven, Ludvig van"

Why the equal sign before Beethoven?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Rename problem with calculated fields
« Reply #1 on: November 19, 2012, 12:58:41 pm »

The = sign should only be used when you are assigning an expression's output to a tag directly, by in-cell editing, or the Tag Action Window.  Remove (or more correctly, do not add) it for calculated fields.

See the just updated topic:

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

Flavio61

  • Recent member
  • *
  • Posts: 24
Re: Rename problem with calculated fields
« Reply #2 on: November 19, 2012, 01:10:54 pm »

 ;D
Logged
Pages: [1]   Go Up