Code
Walk-through
In SuperOffice, you can define an interest both with and without a heading (an interest can also exist under multiple headings). Each interest has its unique ID, which we in the example above used to set a specific interestId to true. It doesn’t matter if you move an interest to a different heading, as the unique ID stays consistent. First, we need to loop theNSSelectableMDOListItem[] we get back from the GetInterests() method:
We also need to
SetChildItems back into the interestOrHeadings array.