如何使用icm_receivedocumentids事件?

发布于 2025-02-08 19:12:44 字数 1116 浏览 3 评论 0 原文

我正在尝试显示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:
Image of the offical IBM documentation

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

剑心龙吟 2025-02-15 19:12:44

将我的头撞到墙上多次之后,我找到了解决方案!在这种情况下,官方的IBM文档具有错别字。

值:dojo obj的数组,每个数字都有obj.versionseries字段包含vsid

VSID

值:dojo objs的数组,每个阵列具有OBJ。

dojo

payload = {
"objectStoreNames" : ["MyObjectStore"],
"symbolicNames": ["DocumentTitle","CmAcmAssociatedCase", "DateLastModified", "LastModifier"],
"values": [{VersionSeries:"604B5175-0210-C88C-B5CE-C7CA75FD8A9A"}],
"externalColumns": []
};

return payload;

值:

  • 。作为资本案例,
  • “版本销售”没有报价标记

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.

values: array of dojo objs, each has obj.versionSeries field contains vsID

should be

values: array of dojo objs, each has obj.VersionSeries field contains vsID

which makes the correct payload something like this:

payload = {
"objectStoreNames" : ["MyObjectStore"],
"symbolicNames": ["DocumentTitle","CmAcmAssociatedCase", "DateLastModified", "LastModifier"],
"values": [{VersionSeries:"604B5175-0210-C88C-B5CE-C7CA75FD8A9A"}],
"externalColumns": []
};

return payload;

Important differences to the payload in the question:

  • the 'v' in 'VersionsSeries' must be capital case
  • there are no quotation marks around 'VersionSeries'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文