Expanding and Collapsing the view entries can be a big issue and it might hurt your head. If you do not get it right first time
I used this method as I had posted it in my own blog entry [link] . But for some reason it was not working, I was getting a blank view
Later I realized that I had the following set in my views
1. Do not show empty categories
2. I had hidden Authors and Readers in the document
3. I had Categorized view
Since I was using 8.5.3 Version, I was under the impression it should work all the time and It does work only if you have a single column categorized view. Otherwise it does not work.
As my users wanted multiple categorizes in the view. I did some research and found the following approach.
var categroyNos = getViewNavCount(compositeData.dominoView);
var viewPanel = getComponent(compositeData.viewPanelName);
var newTable:com.ibm.xsp.model.domino.DominoViewDataModel = viewPanel.getDataModel();
for(i=1;i<=categroyNos;i++){
newTable.expandRow(@Text(i));
}
Use collapseRow if you want to collapse
I used this method as I had posted it in my own blog entry [link] . But for some reason it was not working, I was getting a blank view
Later I realized that I had the following set in my views
1. Do not show empty categories
2. I had hidden Authors and Readers in the document
3. I had Categorized view
Since I was using 8.5.3 Version, I was under the impression it should work all the time and It does work only if you have a single column categorized view. Otherwise it does not work.
As my users wanted multiple categorizes in the view. I did some research and found the following approach.
var categroyNos = getViewNavCount(compositeData.dominoView);
var viewPanel = getComponent(compositeData.viewPanelName);
var newTable:com.ibm.xsp.model.domino.DominoViewDataModel = viewPanel.getDataModel();
for(i=1;i<=categroyNos;i++){
newTable.expandRow(@Text(i));
}
Use collapseRow if you want to collapse