我正在尝试显示IBM Case Manager Builder内部的ContentList小部件的文档列表。
为了实现这一点,我将scriptAdapter接线到contentList窗口小部件,并与接收器事件一起。这应该使我有可能将数据作为JSON对象发送到ContentList。
不幸的是,该文档非常尚不清楚该对象内部期望发生什么恶化。
到底是什么意思
值:dojo objs [...]
的数组
我无法在“ Dojo对象”,“ Dojo objs”,“ IBM Dojo对象”等上找到任何东西,即使在大量搜索之后。
我以为它们必须表示一个简单的对象,但这无效:
payload = {
"objectStoreNames" : ["MyObjectStore"],
"symbolicNames": ["DocumentTitle","CmAcmAssociatedCase", "DateLastModified", "LastModifier"],
"values": [{"versionSeries":"604B5175-0210-C88C-B5CE-C7CA75FD8A9A"}],
"externalColumns": [],
"version": "current"
};
return payload;
如果我完全忽略 value
并将其作为空数组,则有效。尽管它只是给了我 文档的列表。
我应该在这个数组中放置什么?任何例子都是宏伟的!
I'm trying to display a list of documents with the ContentList widget inside the IBM Case Manager Builder.
To achieve that I'm wiring a Scriptadapter to the ContentList widget, with the ReceiveDocuments event. This should give me the possibility to send the data as a JSON object to the ContentList.
Unfortunatly the documentation is very unclear about what exaclty is expected inside of this JSON object.
It states:

What exactly is meant with
values: array of dojo objs[...]
I haven't been able to find anything on 'Dojo Objects', 'dojo objs', 'ibm dojo objects' etc. even after extensive searching.
I've assumed they must mean a simple object but this doesn't work:
payload = {
"objectStoreNames" : ["MyObjectStore"],
"symbolicNames": ["DocumentTitle","CmAcmAssociatedCase", "DateLastModified", "LastModifier"],
"values": [{"versionSeries":"604B5175-0210-C88C-B5CE-C7CA75FD8A9A"}],
"externalColumns": [],
"version": "current"
};
return payload;
What does work is if I ignore the values
completely and leave it as an empty array. Although then it just gives me a list of every document inside of the object store.
What exactly am I supposed to put inside of this array? Any examples would be grand!
发布评论
评论(1)
将我的头撞到墙上多次之后,我找到了解决方案!在这种情况下,官方的IBM文档具有错别字。
VSID
dojo
值:
After bashing my head into the wall for way to many times, I've found the solution! In this case the official IBM documentation has a typo.
should be
which makes the correct payload something like this:
Important differences to the payload in the question: