在 Documentum 中显示自定义属性 - Webtop
我正在关注一篇文章,该文章解释了如何使用 ICustomAttributeDataHandler 类。
我正在为收件箱屏幕创建自定义列,但问题是我为自定义属性设置的值没有反映在屏幕上。
作为测试,我将任务名称更改为“whoKnows”。但这段代码不会影响屏幕上的输出:(
ICustomAttributeRecordSet.setCustomAttributeValue(i, "taskName", "whoKnows");
当查看收件箱时,我能够从自定义类打印调试行,因此我知道我的代码正在运行。)
有人对该文章的评论写道:
用户必须调用 “setCustomAttributesInQuery() 方法 在传递 a 的数据提供者上 自定义属性的字符串数组
...这是什么意思?这可能是我的问题吗?
谢谢。
I am following an article that explains how to use the ICustomAttributeDataHandler class.
I am creating a custom column for the inbox screen, but the problem is that the value I set for my custom attribute is not being reflected on the screen.
As a test I am changing the task name to "whoKnows". But this code is not effecting what is output on the screen:
ICustomAttributeRecordSet.setCustomAttributeValue(i, "taskName", "whoKnows");
(I am able to print debug lines from my custom class when the inbox is viewed, so I know my code is being run.)
Someone on the comments of that article wrote:
the user must call the
"setCustomAttributesInQuery() method
on the dataprovider passing in a
string array of the custom attributes
...what does that meen? Could this be my problem?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
说实话,我已经使用过Webtop,但只是作为一个用户。我在dm 开发者讨论组中找到了一个有用的帖子 , 尽管:
我不确定这是否是最终的解决方案,但我希望它有所帮助!
To be honest, I have already used Webtop, but just as an user. I found a post in the dm developer discussion group that can be useful, though:
I'm not sure if this is the final solution, but I hope it helps!
为了回答有关 setCustomAttributesInQuery() 的问题,
WDK 中的每个数据网格都由底层数据提供程序支持。您可以使用以下代码获取此provider。
完成此操作后,您可以打电话给
我,我实际上不确定这是否是您问题解决方案的一部分,但您可以尝试一下,看看它会给您带来什么结果。
To answer you question about setCustomAttributesInQuery()
every datagrid in WDK is backed by an underlying data provider. You can get this proivder by using the following code.
Once you've done that, you can call
I'm not actually sure if this is part of the solution to your problem, but you could try this and see where it gets you.
您必须配置收件箱组件。
如果使用经典视图,请转到收件箱列表组件并添加您的自定义属性。
您的自定义属性必须属于 dmi_queue_item 子类型的自定义类型,因为 inboxlist 仅显示 dmi_queue_item 对象。
希望这有帮助,
问候,
特哈斯。
You have to configure the inbox component.
if using classic view, go to inboxlist component and add your custom attribute.
Your custom attribute has to be in a custom type that is a sub type of dmi_queue_item, because inboxlist shows only dmi_queue_item objects.
Hope this helps,
Regards,
Tejas.
这可能不是问题,但根据您的代码,我无法判断您是否正在执行此操作:
或此操作:
您应该在 rs 对象实例上调用 setCustomAttributeValue 方法,而不是在接口上。
This may be a non-issue, but based on your code, I can't tell if you're doing this:
or this:
You should be calling the setCustomAttributeValue method on the rs object instance, not on the interface.