在不提取的情况下检索文档类描述symbolicName

时间:2015-11-12 16:39:15

标签: vb.net filenet-p8 filenet-content-engine

我正在试图检索ClassDescription symbolicName对象的IDocument ClassDescription。即使我只想要symbolicName,我似乎也必须获取<script> var colors = [<%= colors %>]; </script>

有办法吗?我只是想避免对每个浏览过的文档进行一次获取...

(另外IDocument.GetClassName没有帮助,它返回“Document”)

2 个答案:

答案 0 :(得分:0)

我终于找到了一种方法,通过使SQL SELECT请求检索classDescription ID(不是symbolicName ID,而是&#34;内部&#34;一):

Select This, d.Id, d.ClassDescription
From Document d
where d.Id = ID

它似乎比document.fetch(classDescription)(伪调用)之类的行轻,因为它应该只检索ID。

答案 1 :(得分:0)

我认为值得一提的是有关accepted answer的问题。

有时候进行查询会更轻松&#34;但是我相信你错过了一些涉及提取文件的内容。

FileNet的fetchInstance命令可以接受PropertyFilter。 在你的情况下,你可以做一些事情:

PropertyFilter pf = new PropertyFilter();
pf.AddIncludeProperty(new FilterElement(null, null, null, "ClassDescription", null));
doc = Factory.Document.FetchInstance(os, new Id("doc.ID()"), pf);

您可能希望查看此文档的原始提取,并确保在此时指定属性过滤器的完整列表。

请参阅Working With Documents