How to Refresh Sub Tree Nodes after Songs properties change

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

workhorse149
Posts: 35
Joined: Wed May 12, 2004 8:39 am

How to Refresh Sub Tree Nodes after Songs properties change

Post by workhorse149 »

Thank Lowlander and jiri on pointing me to the Lyricist Tree script Sample. I now have a working Tree Node 'Holiday' with sub nodes based off Songs Database Field Custom1. I pretty much have mimicked the behavior of the existing nodes through script. However I was wonder, If I change a songs custom1 field that is lets say in sub node of 'Christmas' to X-mas. How does the Holiday Node get notified of the change so I can refresh the list with the new sub node.

Thanks
Lowlander
Posts: 56650
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Post by Lowlander »

I don't know, but you could try this.

Collapse and expand the node and see if there are any changes. This works for regular nodes.

Otherwise it might be at startup when MM reads the script and creates the node.

But this is just me guessing.
jiri
Posts: 5419
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

That expaning/collapsing would definitely work. If you want a more automatic method you must wait for next versions with new scripting features. We are always interested in users' experience with scripting and in the new functionality they need.

Jiri
workhorse149
Posts: 35
Joined: Wed May 12, 2004 8:39 am

Post by workhorse149 »

Thanks for the help. I'm happy with script as is. Once a new version is out I'll make a few more modifications.
Post Reply