INTERACT FORUM

More => Old Versions => JRiver Media Center 28 for Windows => Topic started by: rbmjr on January 03, 2022, 10:35:15 am

Title: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: rbmjr on January 03, 2022, 10:35:15 am
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?
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: Matt on January 03, 2022, 06:29:15 pm
I agree.  I'll see what I can do.  Is it only ~n or others?  Thanks.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: rbmjr on January 04, 2022, 07:51:11 am
It probably would be useful in the "Mix" modifier too
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: Matt 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.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: rbmjr 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.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: zybex on January 04, 2022, 05:15:06 pm
Couldn't it use the usual syntax?
[=Load(var)]
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: Matt 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.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: Hendrik 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.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: Matt 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.
Title: Re: Feature Request: Allow Global Variables to be used in Modifier fields
Post by: rbmjr on January 12, 2022, 12:36:39 pm
Awesome enhancement to Media Center. Many thanks!!!