Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Columns UI (Read 4320430 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Columns UI

Reply #7976
Code: [Select]
"$strstr(%title%,' with ')" PRESENT

Thank you very much, once again, marck23

One last thing about the Query search
All the scripts worked for me except the one that searches for tracks whose title contains the character ' and also the character "

"$strchr(%title%,''')" PRESENT

"$strchr(%title%,'"')" PRESENT



Re: Columns UI

Reply #7978
Title Formatting Reference: As a special case, '' (two single quotes in a row) results in one single quote.

Code: [Select]
"$strstr(%title%,'')" PRESENT

Thank you very much Grimes

It worked perfectly

I just need to do a search that lists the tracks that contain in %title% the character " (double quotation mark)

I try this script and it does not work:

Code: [Select]
"$strstr(%title%,'"')" PRESENT


Re: Columns UI

Reply #7979
Don't know if this is the right place to ask.

I want to add a field to the Item Properties panel. Easy enough for standard tags, but how do I add a tag that is normally reachable by using $meta (for instance $meta(label) or $meta(releasecountry) ).
If I use rightclick in a playlist and choose Properties I do get all properties, but they are presented in a couple of tabs and are editable.

So how can I add "special fields" to the normal Item Properties panel? Or is there a different component available?


Re: Columns UI

Reply #7981
Try Item details.

Yes, that works, but means you'll have to "rebuild" the whole Item Properties panel in the Item Details panel.

Am I correct to assume it is not possible to use $meta and/or $info fields in the Item Properties panel?


Re: Columns UI

Reply #7983
but how do I add a tag that is normally reachable by using $meta (for instance $meta(label) or $meta(releasecountry) ).
Why does it need $meta(label) ? Just enter LABEL and it works. (But if you are trying to split mult-values with $meta then looks like you are out of luck)


Re: Columns UI

Reply #7985
Why does it need $meta(label) ? Just enter LABEL and it works. (But if you are trying to split mult-values with $meta then looks like you are out of luck)

My bad :-)
I've been so used to having to use $meta for those fields that I overlooked testing the most obvious. So yes, I can add fields like discogs_label, discogs_country, musicbrainz album release country etc.

Only issue is that I would like to be able to define a field in Item Properties that displays something like:
$if3($meta(releasecountry),$meta(musicbrainz album release country),$meta(discogs_country))

But for now I'm quite happy.
Thx

Re: Columns UI

Reply #7986
Properties + Other Info bundled with my JScript Panel 3 component displays all tags. It just iterates whatever exists with no configuration required.

https://jscript-panel.github.io/gallery/properties-other-info/

Thx for replying.

I'll check. I'm quite heavily dependent on 2.8.8 (with modified button and volume bar code for automatic adjustment for windows scaling and pseudo-transparency) though and as far as I remember I cannot use both versions of jscript_panel.


Re: Columns UI

Reply #7988
You can install JSP3 along side your existing copy of 2.8.8. They have different dll names/internal names/ids.

Thx!

I installed a jscript 2.8.8 panel with the Properties + Other sample script.
I also a jscript 3.2.20 panel installed jscript 3.2.20 with the Properties + Other Info sample script.

Both show exactly the info I want to see and I like that you can select Follow selected track.

I do have two issues:

First issue: I cannot change the width of the displayed colums (fieldname and value) and the layout seems to first display the fieldname fully. Because of that I don't see much of the relevant values. Happens both in jscript 2 and jscript 3.

Second issue: How can I get jscript 3 to use pseudo-transparency? Jscript 2 works fine and looks great imo.

Re: Columns UI

Reply #7989
That width issue is quite simply a bug. It's supposed to use the widest field name, not section header as the width. I'll fix that for the next release.

Although not documented, I guess you can get pseudo transparency in the latest 3.2.20 by adding from the Toolbar section in the CUI layout editing preferences, not Panel. You'd also have to edit the on_paint function inside the panel and comment out panel.paint like this...

Code: [Select]
function on_paint(gr) {
//panel.paint(gr);
panel.draw_header(gr, list.header_text());
list.paint(gr);
}

edit: script bug should be fixed. anyone using 3.2.20 can right click this>save link as

https://raw.githubusercontent.com/jscript-panel/component/cfdc7c486c9256a85cb7e948e853b67ac01a71e3/samples/js/list.js

and save inside their user foo_jscript_panel3 component folder (samples\js overwriting the existing list.js)


Re: Columns UI

Reply #7990
That width issue is quite simply a bug. It's supposed to use the widest field name, not section header as the width. I'll fix that for the next release.

Thx again.

I confirm that the changes for list.js did the trick. Width is ok now.
I also changed code in the  Properties + Other Info sample script, but where can I find the following "Toolbar section in the CUI layout editing preferences" ?

Re: Columns UI

Reply #7991
Right click any splitter>Insert panel>Toolbars>JScript Panel 3.

If you use Panels instead of Toolbars, you won't get transparency. It's not an option like 2.8.8  - it gets enabled automatically for toolbars.

Re: Columns UI

Reply #7992
Right click any splitter>Insert panel>Toolbars>JScript Panel 3.

If you use Panels instead of Toolbars, you won't get transparency. It's not an option like 2.8.8  - it gets enabled automatically for toolbars.

Works like a charm :-D
I also used the same method (toolbar and altering the on_paint function) to migrate my ART panel (thumbs.js) to jscript3.
I'll now try to migrate the more heavily modified menu button, pbo button and volume slider which are all jscript2 panels and also depend on pseudo-transparency.

Edit: Migration of Volume slider to JS3 was easy enough :-) I added the altered source for reference.

Question about the Properties + Other Info toolbar.

I do like the fact you can click on certain fields which open up a playlist with all tracks with this particular value of the clicked field.
But is there a method to go back to the previous playlist other then navigating to my playlist panel?
Another thing is everytime you click a new playlist is created (even when it has the same search properties as another one) which kind of clutters the playlist panel.
Alternatively is their a simple way to disable the clickthrough functionality if there's no fix for the above?