simple problem (i hope)

simple problem (i hope)

i have a desktop > named/labeled myDesktop

on the Desktop is a Panel > named/labeled myPanel

in the panel is a shortcurt > named/labeles myShortcut

i want to change some properties of this Shortcut.

i do not want to work with hard coded IDs from panels and shortcuts,

because i don’t know whether they keep them.

one (i made a lot of) example for what i’ve tried before

var desk=LL.getDesktopbByName(‘myDesktop’);

var panel=desk.getItemByLabel(‘myPanel’);

/*

panel is now an Item not a  Container  

try to find the ContainerId

*/

var pcon=LL.getContainerById(panel);

/*

so far it works

trying now to find the Shortcut

*/

var shortcurt=pcon.getItemByLabel(‘myShortcut’);

/*

failed

Cannot find function getItemByLabel in object # (where # is a Id) 

*/

some ideas?

]]>

2 Commentsto simple problem (i hope)

  1. Anonymous says:

    < ![CDATA[

    var pcon = panel.getContainer();

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Bogdan Tautu wow. that’s it. thanks a lot bogdan

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *