INTERACT FORUM

Please login or register.

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

Author Topic: Changing pane title  (Read 2530 times)

gummbah

  • World Citizen
  • ***
  • Posts: 240
Changing pane title
« on: June 06, 2008, 01:09:58 am »

What I like to do is give panes a certain name, in the case I would like to call it A-Z.
The pane is meant to let me choose a grouping of album artists, e.g. C-D, or G-H.
This is possible by using the library field Album Artist (auto).
However, it does not let you choose the pane name, it automatically calls it what you choose to be the library field.

Changing names is only possible when making an expression.
So I made a simple expression [Album Artist (auto)], which does excactly the same as choosing the library field.
However, I noticed that I cannot click the grouping feature in expression panes.

So my question is: is there a way to do pane naming and grouping in the same pane??
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Changing pane title
« Reply #1 on: June 06, 2008, 01:31:32 am »

one thing you could do is use Mid([Album Artist (auto)]) in the expression. this gives the first letters. the problem is that for various artists it gives a ( only.

 :)
gab

edit:
this seems to work
if(isequal(mid([Album Artist (auto)]),(),?, Mid([Album Artist (auto)])
multiple artists are under ?

ah well... im just awake.. this works only for a 1 grouping ofcource.. :)
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Changing pane title
« Reply #2 on: June 06, 2008, 02:03:25 am »

You'd be looking for an expression like so:

Code: [Select]
if(isequal([album artist (auto)],multiple,8),[album artist (auto)],
if(isrange([album artist (auto)],1-9999),0 - 9,
if(isrange([album artist (auto)],a-b),A - B,
if(isrange([album artist (auto)],c-d),C - D,
if(isrange([album artist (auto)],e-f),E - F,
if(isrange([album artist (auto)],g-h),G - H,
if(isrange([album artist (auto)],i-j),I - J,
if(isrange([album artist (auto)],k-l),K - L,
if(isrange([album artist (auto)],m-n),M - N,
if(isrange([album artist (auto)],o-p),O - P,
if(isrange([album artist (auto)],q-r),Q - R,
if(isrange([album artist (auto)],s-t),S - T,
if(isrange([album artist (auto)],u-v),U - V,
if(isrange([album artist (auto)],w-x),W - X,
Y - Z))))))))))))))

-marko

gummbah

  • World Citizen
  • ***
  • Posts: 240
Re: Changing pane title
« Reply #3 on: June 06, 2008, 03:34:36 am »

You'd be looking for an expression like so:

Code: [Select]
if(isequal([album artist (auto)],multiple,8),[album artist (auto)],
if(isrange([album artist (auto)],1-9999),0 - 9,
if(isrange([album artist (auto)],a-b),A - B,
if(isrange([album artist (auto)],c-d),C - D,
if(isrange([album artist (auto)],e-f),E - F,
if(isrange([album artist (auto)],g-h),G - H,
if(isrange([album artist (auto)],i-j),I - J,
if(isrange([album artist (auto)],k-l),K - L,
if(isrange([album artist (auto)],m-n),M - N,
if(isrange([album artist (auto)],o-p),O - P,
if(isrange([album artist (auto)],q-r),Q - R,
if(isrange([album artist (auto)],s-t),S - T,
if(isrange([album artist (auto)],u-v),U - V,
if(isrange([album artist (auto)],w-x),W - X,
Y - Z))))))))))))))

-marko

That really is incredibly excellent, how did you come up with that!?
Thanks!
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Changing pane title
« Reply #4 on: June 06, 2008, 03:44:43 am »

Expressions are cool, huh?

They offer so many possibilities in so many different ways in so many different areas.

There are boundaries, such as no mathematical ability and no way to compare a tag in one file with a tag in another, but still, the playing area is enormous!

-marko.

gummbah

  • World Citizen
  • ***
  • Posts: 240
Re: Changing pane title
« Reply #5 on: June 06, 2008, 10:22:14 am »

Not really a big of a deal, but I noticed that this expression produces the following order:

A - B
(Multiple Artists)
0 - 9
C - D
E - F
etc.

I would expect A - B the start after 0 - 9.
Anything I can do about it?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Changing pane title
« Reply #6 on: June 06, 2008, 12:35:29 pm »

Anything else possibly different with your setup?
In my test pane, it sorts as expected.


I wonder...
What language setting do you use in MC?

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Changing pane title
« Reply #7 on: June 06, 2008, 02:48:34 pm »

i also tested the expression this afternoon, i get the same results as gummbah. and that is on an english xp with the standard english in mc. and in version 492 and 512. could not find what was going on and how to change it.

now the interesting thing is, when i change the code a bit (taking the - and the second letter away) it works.
Code: [Select]
if(isequal([album artist (auto)],multiple,8),[album artist (auto)],
if(isrange([album artist (auto)],1-9999),0,
if(isrange([album artist (auto)],a-b),A,
if(isrange([album artist (auto)],c-d),C,
if(isrange([album artist (auto)],e-f),E,
if(isrange([album artist (auto)],g-h),G,
if(isrange([album artist (auto)],i-j),I,
if(isrange([album artist (auto)],k-l),K,
if(isrange([album artist (auto)],m-n),M,
if(isrange([album artist (auto)],o-p),O,
if(isrange([album artist (auto)],q-r),Q,
if(isrange([album artist (auto)],s-t),S,
if(isrange([album artist (auto)],u-v),U,
if(isrange([album artist (auto)],w-x),W,
Y))))))))))))))

it puzzles me..

 :)
gab

edit: i took a screen shot from what i get in my test database using markoos expression and with the small modification i posted above... totally not logical to me, markoos should work.
Logged

gummbah

  • World Citizen
  • ***
  • Posts: 240
Re: Changing pane title
« Reply #8 on: June 06, 2008, 03:15:00 pm »

This does the trick for me, just delete the space between -

if(isequal([album artist (auto)],multiple,8),[album artist (auto)],
if(isrange([album artist (auto)],1-9999),0-9,
if(isrange([album artist (auto)],a-b),A-B,
if(isrange([album artist (auto)],c-d),C-D,
if(isrange([album artist (auto)],e-f),E-F,
if(isrange([album artist (auto)],g-h),G H,
if(isrange([album artist (auto)],i-j),I-J,
if(isrange([album artist (auto)],k-l),K-L,
if(isrange([album artist (auto)],m-n),M-N,
if(isrange([album artist (auto)],o-p),O-P,
if(isrange([album artist (auto)],q-r),Q-R,
if(isrange([album artist (auto)],s-t),S-T,
if(isrange([album artist (auto)],u-v),U-V,
if(isrange([album artist (auto)],w-x),W-X,
Y - Z))))))))))))))
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Changing pane title
« Reply #9 on: June 06, 2008, 03:30:02 pm »

indeed it does. interesting bug. i tried the - alone, and the second letter, but not the space.... 8)
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Changing pane title
« Reply #10 on: June 07, 2008, 01:55:38 am »

Which doesn't explain why it works as expected for me but not for the two of you.

Very strange indeed.

-marko.

eba

  • Galactic Citizen
  • ****
  • Posts: 351
Re: Changing pane title
« Reply #11 on: June 07, 2008, 03:58:01 am »

It's dependent on whether Ignore Articles is on - if it is, A is ignored so it goes at the top :)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9133
Re: Changing pane title
« Reply #12 on: June 07, 2008, 04:06:35 am »

indeed.
nice catch eba.

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Changing pane title
« Reply #13 on: June 07, 2008, 04:12:48 am »

Bingo eba.. good thinking...  :)
Logged
Pages: [1]   Go Up