Collapse/expand container

tejumes
Kilo Guru

I have a record producer has 6 container . I'm able to collapse all the container when catalog onLoad with the below script.

Catalog Client script

OnLoad

setCollapseAllIcons('collapse', '');

expandCollapseAllSets(false);

BUT user wants to expand the first container alone when the catalog onLoad other container needs to be collapse.

I tried with togglevariablecontainer() and toggleSectionDisplay('sys_id'); NOT working.

Any help??

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

expandCollapseAllSets(false);


toggleVariableSet('3c9975a10f3ed200781ccf8ce1050e05'); //replace with the sys id of the first container variable.


View solution in original post

14 REPLIES 14

I tried your code in Eureka and it works great, but it doesn't seem to work in Geneva. Have you had any luck there?


Hi,


use tooglevariablecontainer('sys_id');


lrugen
Tera Contributor

Hi Midhun-


Thank you for the reply. I'm assuming it's togglevariablecontainer not tooglevariablecontainer, but neither worked. I tried it as follows



expandCollapseAllSets(false);


togglevariablecontainer('sys_id');



I can't even get anything to collapse in Geneva.


Hi Rugen, You need to remove expandCollapse line from the script , below is the sample



function onLoad() {


  //Type appropriate comment here, and begin script below


  toggleVariableContainer('r342b4d44555780b8faf1728110c72e');


  toggleVariableContainer('3378e45a34f9212b8faf1728110c77b');


}



So the sysid mentioned will be collapsed. other containers will be expanded.



Please mark helpful , if really helps you


lrugen
Tera Contributor

Works perfectly. Thank you so much!