INTERACT FORUM

Please login or register.

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

Author Topic: Feature Request: Allow Global Variables to be used in Modifier fields  (Read 1532 times)

rbmjr

  • World Citizen
  • ***
  • Posts: 124

The forum has been a great help showing me how to create and save() a Global variable. (see attachment 1). I cannot seem to use that Global variables value as a modifier value in a Smartlist (see attachment 2). Would it be possible to allow the use of Global variables in Smartlist modifiers?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #1 on: January 03, 2022, 06:29:15 pm »

I agree.  I'll see what I can do.  Is it only ~n or others?  Thanks.
Logged
Matt Ashland, JRiver Media Center

rbmjr

  • World Citizen
  • ***
  • Posts: 124
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #2 on: January 04, 2022, 07:51:11 am »

It probably would be useful in the "Mix" modifier too
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #3 on: January 04, 2022, 12:05:06 pm »

As a first step, next build:
NEW: Made it so you can put expressions in a "Limit number to" Smartlist rule (~n) by putting brackets around it (example: {Load(var)}).

The way the language works we'll need to do each modifier one by one.

This is now working well for me.  I was riddling over ways to make the parenthesis live and realized brackets do the job nicely.

Thanks for the suggestion.
Logged
Matt Ashland, JRiver Media Center

rbmjr

  • World Citizen
  • ***
  • Posts: 124
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #4 on: January 04, 2022, 02:06:06 pm »

Awesome, thanks!

I've been a JRiver Media Center fan and user for years, and yet I feel as though I've only scratched the surface of what MC can do. I have yet to find another vendor with such great forum support and values user input as much as JRiver does.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2674
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #5 on: January 04, 2022, 05:15:06 pm »

Couldn't it use the usual syntax?
[=Load(var)]
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #6 on: January 04, 2022, 05:38:17 pm »

Couldn't it use the usual syntax?
[=Load(var)]

It sure could.  What other things use that syntax?

Following other parts of the program is good, I just wasn't sure what else used this model.

Thanks.
Logged
Matt Ashland, JRiver Media Center

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #7 on: January 04, 2022, 05:41:04 pm »

Search queries use the square bracket syntax to identify expressions, specifically [=expression], including the equals sign to denote the result of the expression is being returned. Using the same syntax would be great, there might even be a function to handle it already.
Logged
~ nevcairiel
~ Author of LAV Filters

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #8 on: January 04, 2022, 05:44:03 pm »

Search queries use the square bracket syntax to identify expressions. Using the same syntax would be great, there might even be a function to handle it already.

Very true!

https://wiki.jriver.com/index.php/Search_Language#Searching_with_Expressions

I'll make the switch tomorrow.  Thanks everyone.
Logged
Matt Ashland, JRiver Media Center

rbmjr

  • World Citizen
  • ***
  • Posts: 124
Re: Feature Request: Allow Global Variables to be used in Modifier fields
« Reply #9 on: January 12, 2022, 12:36:39 pm »

Awesome enhancement to Media Center. Many thanks!!!
Logged
Pages: [1]   Go Up