如果我们提供相应文件的 object_id,任何人都可以提供 Documentum 查询语言中的解决方案来访问从 documentum 签出的文件的文件夹详细信息。谢谢你.......
8 回答
你可以试试这个dql:select * from dm_folder where r_object_id in (select i_folder_id from dm_document where r_object_id = '<objectId>')
您可以同时在 API 控制台中转储对象 ID。命令转储,c,您可以看到很多属性 - 比 DQL 可以为您提供的更多/然后搜索 r_object_id 再次转储并搜索 I_folder_path 你会得到你的誓言
您有文档的对象 ID,而不是文件夹的对象 ID。因此,首先您使用文档的对象 ID 获取文件夹 ID。此步骤的查询是:
select i_folder_id from dm_document where r_object_id='<objectid>'
作为上述查询的结果,您将获得 i_folder_id。只要你转储这个id就足够了。您将获得有关该文件夹的信息。
对于签出的文档,您可以使用 -
select * from dm_document where r_lock_owner not like ' '
您可以从上述查询结果中选择您的 r_object_id。然后是文件夹详细信息 -
select * from dm_folder where r_object_id in (select i_folder_id from dm_document where r_object_id = 'r_object_id')
如果你想要所有签出文档的文件夹路径,你可以给 -
select distinct d.r_object_id,d.object_name, f.r_folder_path from dm_folder f,dm_document d where any d.i_folder_id = f.r_object_id and d.r_object_id in <'give r_object_id for checked out documents'> enable (ROW_BASED)
这里相对较新,但希望这会有所帮助。我只在我的选择列表中包含了 r_folder_path,但您可以包含您需要的任何其他 dm_folder 属性。
如果您没有文档的 r_object_id,您可以使用以下 DQL 返回所有签出文档的文件夹详细信息 -
select d.r_object_id,
d.title,
f.r_folder_path
from dm_document d, dm_folder f
where d.i_folder_id = f.r_object_id
and d.r_object_id in
(
select r_object_id
from dm_document
where r_lock_owner not like ' '
)
and f.r_folder_path not like ' '
enable (row_based)
select * from dm_folder where r_object_id in (select i_folder_id from dm_document where r_object_id = [given_obj_id]);
您可以选择自定义类型而不是 dm_document,这会将结果限制为您想要的类型。
If you want to know in which folders checked out documents exists, you can get the folderpaths via:
select distinct r_folder_path
from dm_folder
where r_object_id in
(select i_folder_id
from dm_document
where r_lock_owner is not nullstring)
Or you can change the last part to: where r_lock_owner = '<name of owner>'
and substitute the name in <name of owner>
.
select * from dm_sysobject
where r_object_id in (select i_folder_id from dm_sysobject where
r_object_id='your _object_id')
If you want owner detail
s, type of the folder
(if your business has any),its object type
and rest other information other than path to the files can be obtained from above query. If you want path then use:
select * from dm_folder
where r_object_id=(select i_folder_id from dm_sysobject where
r_object_id='your _object_id')