cancel
Showing results for 
Search instead for 
Did you mean: 

iterating through sections ...

giluka
Champ in-the-making
Champ in-the-making
Hi all,
my problem is to iterate through sections of current section (subfolders) in model js file.
How can i do that ?
Something like …

for (index=0;index<context.properties.section.sections.size();index++){
    mySubSection= ??
}

Thanks
1 REPLY 1

giluka
Champ in-the-making
Champ in-the-making
resolved …
context.properties.section.sections is an ArrayList…
so:

for (index=0;index<context.properties.section.sections.size();index++){

   mySubSection=context.properties.section.sections.get(index);
}

Smiley Very Happy