xpages 视图面板搜索和排序 [英] xpages viewpanel searching and sorting

查看:50
本文介绍了xpages 视图面板搜索和排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我可能对 viewPanel Control (8.5.2) 期望过高,但想证实我的怀疑.我有一个多米诺骨牌视图,其中前三列按升序排列,并启用了单击列进行排序"并设置为两者".当我简单地使用 viewPanel 显示视图并且不使用 viewPanel 的搜索和排序属性时,显示首先按第 1 列,然后按第 2 列,然后按第 3 列.全部升序且漂亮.但是,因为我只想显示记录的子集,所以我使用视图面板的搜索"属性来搜索第一列中的值,并且只返回具有匹配值的记录.那时,我得到了我想要的记录,但我失去了所有的排序.所以 - 我使用 sort 属性将记录排序在第二列上,这很好并且有效,尽管出于某种原因我必须将sortOrder"显式设置为升序或顺序默认为降序.我真的很想对第三列进行排序.我应该转储 viewPanel 并使用 Datapanel 或 Repeat 控件吗?谢谢,---丽莎&

I think I may be expecting too much from a viewPanel Control (8.5.2), but want to confirm my suspicion. I have a domino view that has the first three columns sorted ascending and has the "click on column to sort" enabled and set to "both". When I simply display the view using a viewPanel and do not use the search and sort properties of the viewPanel, the display is sorted first by column 1, then by column 2, then by column 3. All ascending and pretty. But, since I only want a subset of records presented, I use the "search" property of the viewpanel to search for a value in the first column and only return the records with the values that match. At that point, I get the records that I want but I lose all the sorting. So - I use the sort property to get the records sorted on the second column which is nice and works although for some reason I have to set the "sortOrder" explicitly to ascending or the order defaults to descending. I would really like to have that 3rd column sorted as well. Should I dump the viewPanel and work with a Datapanel or Repeat control? Thanks, ---Lisa&

推荐答案

您是否尝试过使用键过滤器代替搜索?它过滤第一个已排序的列,据我所知,它使所有排序保持不变.

Have you tried a key filter instead of search? It filters on the first sorted column, and as far as I remember it is leaving all the sorting intact.

这里的缺点是对于可排序的列,这可能无法按预期工作.

Drawback here is that this may not work as expected for sortable columns.

除此之外,我完全同意 Paul 关于 Domino 8.5.2 的看法;我觉得即使是 8.5.3 编程也很痛苦,但至少那个版本还在得到修复.

Apart from that I totally agree with Paul in regards to Domino 8.5.2; I feel that even 8.5.3 is a pain to program for, but that version at least still is getting fixes.

这篇关于xpages 视图面板搜索和排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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