Lookup of tree node state (expand / collapse)
Multi platform library to read and write schedule data
Brought to you by:
joniles
MSProject stores the node state of its task hierarchies so that when the user opens the file next time the task tree (hierarchy) will be displayed as it was before. Expanded nodes will be expanded again, collapsed ones will still be collapsed. It would be nice if the api could support this, too.
I have vague idea that ViewState.getUniqueIdList might give you the list of objects currently visible (for example, the tasks which are not in a collapsed state). Let me know if that's what you are looking for - it's been a long time since I've looked at that area!
The method ViewState.getUniqueIDList() simply returns the unique ids of the tasks shown in the currently active view. The method ViewState.getViewname() returns the name of the currently open view (when the user saved). This is not the information needed in order to recreate the open / collapse state of the tree nodes.