Is there a way you can open a hierarchical view (with response documents) on a xpage as collapsed by default?
I have a view in a CRM application that uses responses to create a hierarchy of company - department - contact - correspondence. When I show this view in an xpage it opens with all parents expanded. I want it to be collapsed by default so the user can navigate to the desired response level of a company (parent) himself. I cannot find a way to this however. I see no propterties for this and haven’t found any examples or forum topics.
I didn’t find any methods/commands either to “expand all” or “collapse all” in an xpage (like the URL command ‘ExpandView’).
I have the view-property “Collapse all when database is first opened” selected.
I looked at using the data table with the section and repeat controls and I can come a long way with that, however it seems a lot of work to create a section/repeat-control for each response-level. Also in the response-hierarchy view you can click on the twisty to expand the response-level and you can click on the text next to the twisty to open the document (in a panel on the same xpage in my case). In the section-control clicking on the twisty or text both open/close the section and I would want to change that for my situation.
The “Lotus Domino Designer XPages User Guide” says for the View control that “Categories are collapsed by default”, but I tested this for a categorized view and that opened with all categories expanded as well.