8.5.2 View Collapse All not working correctly

The collapse all categories code I’m using, suggested by Tibor Koch in this forum, is now not working in 8.5.2. Worked fine in 8.5.1. In 8.5.2, it collapses all categories but I end up with an empty view display with only the headings. The counterpart, expand all, still works. It doesn’t matter if the view is multi-page, single-page, one category, or multiple categories – it pretty consistently does not work anymore.

var viewPanel = getComponent(compositeData.viewPanelName);

var model:com.ibm.xsp.model.domino.DominoViewDataModel = viewPanel.getDataModel();

var container:com.ibm.xsp.model.domino.DominoViewDataContainer = model.getDominoViewDataContainer();

container.collapseAll();

Anyone have a work-around or know why it would stop working in 8.5.2? Any help is greatly appreciated.

Subject: +1

I’m in a deadlock too :(waiting for news…

Subject: 8.5.2 View Collapse all hide all entries

It seems to me that the problem arise when setting “don’t show empty categories” in the view properties.

michele

Subject: SOL’N (UGLY): 8.5.2 view collapse all

This is many months after I found the problem but just in case others are still using this forum, I’ll post what worked for me.

It seems my views had all been created in an earlier version of Designer (6.5 if I recall). The views suddenly became corrupt in 8.5.2 (go figure).

How to fix? Did a create new view in the 8.5.1 designer, modelled after the default view & then copied all the columns over from the old/bad view … finicky stuff 'cause of the view action buttons & the view selection formulas. Yeuch! If you have Ytria ViewEZ, not so bad though – if like me, you don’t, my sympathies.

Subject: Sol!!

View cloumn should be categorized for the formula @Command([ViewCollapseAll]) to work.

Cheers!!

Rakesh