INTERACT FORUM

More => Old Versions => Media Center 16 (Development Ended) => Topic started by: Opawesome on May 11, 2011, 03:06:55 pm

Title: Library field automatically switches from list to string when updating library
Post by: Opawesome on May 11, 2011, 03:06:55 pm
Hi again,

I am encountering the following problem (maybe bug).

I have created a library field called "mood" which gets a list of moods from id3 tags, all separated by semicolons. I have set the "data type" as such (list separated by semicolons). Everything works fine.

But when I update the library (from tags), it suddenly switches back to a "string" data type (!?) and I have to change the setting again...

This is somehow strange (beside of annoying) considering the fact that I have created similar fields such as "occasion" or "category" on the very same scheme and they remain set as a list in "data type".

Any idea why this happens and how to prevent it ?

Thank you very much for your help.

Best regards,

Opawesome
Title: Re: Library field automatically switches from list to string when updating library
Post by: vagskal on May 11, 2011, 03:55:15 pm
What happens if you create a new field named Moods with the expression
Code: [Select]
[mood]&datatype=[list]
This is what I do since I think Mood is a stock field of a non list type.
Title: Re: Library field automatically switches from list to string when updating library
Post by: Opawesome on May 12, 2011, 11:25:12 am
Your suggestion solved the problem. Thank you very much.

Have a nice day!

Opawesome
Title: Re: Library field automatically switches from list to string when updating library
Post by: lise on May 13, 2011, 12:16:37 pm
I had the same issue. The odd thing is that I was able to change Mood to list for a while then it went back to string. Bit of a pain these default fields whose formats can't be changed. Forces us to create new fields with names we don't want.  To the very least the datatype field should be greyed out for default fields so that we don't spend time trying to change them only to discover it will not work. I spent I don't know how many hours trying to get Mood into a list type only to discover I had to create yet another custom field with a new name for Mood.
Title: Re: Library field automatically switches from list to string when updating library
Post by: vagskal on May 13, 2011, 12:52:07 pm
It might be a mistake that you can, at least temporarily, change the type of a stock field. For a while you could temporarily set some stock fields to be relational, which I found useful until that functionality was removed along with some of the data I had entered...

If you choose to show only user fields in the manage library fields options screen the field Mood is shown, but I do think it is a stock field (since it works nicely together with the custom Moods field). Maybe an option to show only stock fields in that screen would be useful.
Title: Re: Library field automatically switches from list to string when updating library
Post by: rick.ca on May 13, 2011, 04:28:42 pm
I'm confused. My [Mood] field appears to be a user field (and the fact it's been restricted to video further suggests this). Maybe it was originally added by JRiver, but as a "user" field. It's a list-type and has always worked fine as such. If it didn't, it appears I'd be able to delete it and create another that did. I don't see any default fields that allow the data type to be changed. :-\
Title: Re: Library field automatically switches from list to string when updating library
Post by: Opawesome on May 13, 2011, 05:10:22 pm
I'm confused. My [Mood] field appears to be a user field (and the fact it's been restricted to video further suggests this). Maybe it was originally added by JRiver, but as a "user" field. It's a list-type and has always worked fine as such. If it didn't, it appears I'd be able to delete it and create another that did. I don't see any default fields that allow the data type to be changed. :-\

I confirm that I, also, created the field in the database. It was not built-in.
Title: Re: Library field automatically switches from list to string when updating library
Post by: vagskal on May 13, 2011, 05:29:41 pm
I'm confused. My [Mood] field appears to be a user field (and the fact it's been restricted to video further suggests this).

Really. You may be right, although my Mood field is not restricted to video (and something made me create also a Moods field for my audio files). But why would the OP have problem retaining the list type status then?

Oh, well it works now for you and me and the OP, so I guess everything is OK.