打开时仅展开 viewPanel 中的部分分类列 [英] Expand only some of the categorized columns in a viewPanel upon opening

查看:25
本文介绍了打开时仅展开 viewPanel 中的部分分类列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ViewPanel 来显示分类视图.此视图有 4 列类别.总共有 3 个额外的列.

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.

我想打开此视图,以便展开前 3 个分类列并折叠第 4 个.

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

是否有某种类型的 SSJS/CSJS 可以添加到可以执行此操作的视图中?

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

在 viewPanel 的属性中打开视图时,我没有看到展开/折叠列的选项.

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

我尝试在后端视图上使用折叠选项,但这对 Xpage 端没有影响.我尝试隐藏详细信息行,但无论如何它们都会显示出来.

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.

推荐答案

为此,只需更改数据源的展开级别:

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>

您甚至可以通过添加一个简单的 URL 参数来控制它:nameOfXPage.xsp?expandLevel=3

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

祝你有个美好的一天

斯文

这篇关于打开时仅展开 viewPanel 中的部分分类列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆