视图类别以"\\"分隔的getDocumentByKey在XPages中 [英] getDocumentByKey with view category separated by "\\" in XPages

查看:126
本文介绍了视图类别以"\\"分隔的getDocumentByKey在XPages中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到一个视图,其中第一栏按一个字段分类,第二栏按更多的值分类,并用"\"分隔.

I got a view where the fist column is categorized by one field and the second column is categorized with more values separated with "\".

我现在尝试按键获取文档,直到我从第二列中删除类别选项后,该文档才起作用.我在SSJS和Java中尝试了getEntryByKey,getAllEntriesByKey,getDocumentByKey,getAllDocumentsByKey.我只是尝试将它与LotusScript Agent一起使用,并且可以正常工作.

I now try to get a document by key, it does not work until I remove the category option from the second column. I tried getEntryByKey, getAllEntriesByKey, getDocumentByKey, getAllDocumentsByKey in SSJS and in Java. I tried it just for fun with an LotusScript Agent and it works.

另一种可行的方法是createViewNavFromCategory.但是我也有一些观点,其中仅对第一列进行了排序,原因是该解决方案不适用于我.

Another way that works is createViewNavFromCategory. But I also have some views where the first column is only sorted and of cause than this solution does not work for me.

这是一个已知问题吗?有办法解决这个问题吗?

Is that an known issue? Is there a way to work around this problem?

更新: 我只想将第一列用于getDocumentByKey

UPDATE: I just want to use the first column for getDocumentByKey

推荐答案

我建议尝试在Java代理中尝试.如果那不起作用,我将提出一个PMR. Java和LotusScript之间存在一些差异,因此它可能无法正常工作.我发现与数字值存在类似的不一致(我相信应该在9.0.2中修复) http://www.intec.co.uk/apparent-java-getalldocumentsbykey-getallentriesbykey-bug/

I'd suggest trying in a Java agent. If that doesn't work, I'd raise a PMR. There are some differences between Java and LotusScript, so it's possible that it doesn't work. I found a similar inconsistency with number values (which should be fixed in 9.0.2, I believe) http://www.intec.co.uk/apparent-java-getalldocumentsbykey-getallentriesbykey-bug/

在Java中,"\"可能会转义,因此您可能需要其他字符,就像在公式语言中一样

It may be that "\" gets escaped in Java, so you may need extra characters, same as you would in Formula Language

这篇关于视图类别以"\\"分隔的getDocumentByKey在XPages中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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