Expand only some of the categorized columns in a viewPanel upon opening

我的梦境 提交于 2019-12-20 02:05:12

问题


I am using a ViewPanel to show a categorized view. This view has 4 columns of categories. There are 3 additional columns that are totaled.

I want to open this view so that the first 3 categorized columns are expended and the 4th one is collapsed.

Is there some type of SSJS / CSJS that I can add to the view that can do this?

I didn't see an option to expand/collapse a column upon opening the view in the Properties of the viewPanel.

I tried using the collapse option on the back-end view but that has no effect on the Xpage side. I tried hide detail rows, but they show up anyway.


回答1:


To do this, just change the expand level of your datasource:

<xp:this.data>
    <xp:dominoView var="view1" viewName="NameOfYourView" expandLevel="4" />
</xp:this.data>

EDIT:

You can even control this by adding a simple URL parameter: nameOfXPage.xsp?expandLevel=3

Have a nice day

Sven



来源:https://stackoverflow.com/questions/10524850/expand-only-some-of-the-categorized-columns-in-a-viewpanel-upon-opening

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!