Archive: dynamic SectionGroup


dynamic SectionGroup
Hi,

I need a script which can decide on runtime, which sections and groups should be available. To do that, I tried the solution from this forum, to add lots of empty Sections, and change the names on runtime. that all works well, but I also need to change some sections to sectionGroup. If I set the sectionFlags of the first section to group and in the next section i only change the name, and in the section after this, I set the flag to groupEnd, all works as expected, I get a group with one subsection.

BUT.. if I do the same again, which means the 4th section set to group, the 5th only name change and the 6th to groupEnd, I get a new group inside the first one...

so instead of something like this:

group1
  |-- section

group2
  |-- section

I get this:

group1
  |-- section
  |-- group2
       |-- section

anybody knows why this happens?

thx :)


ok i found the problem...
the sectionEnd node also needs to have a text set, otherwise it's beeing ignored...