Hi,
I am a newbie to Documentum, can anyone tell me how to get the values of the 'r_version_label' by DQL & java language.
Thanks.
Thomson
Hi.
Using DQL you can simply select r_version_label, object_name,<atributes> from dm_sysobject where <qualification> and objects will be listed on multiple lines with one versionlabel on each line.
In Java, using DFC, you first need to find the object which versionlabels you want, then you can get its versionlabels:
IDfSysObject theObject= <use session to get the object>;
IDfVersionLabels labels=theObject.getVersionLabels();
int count=labels.getVersionLabelCount();
for(int index=0;index<count;index++){
String label=labels.getVersionLabel(index);
//Do your thing - system.out or whatever
}
Refer to the DFC javadocs for details.
Hope this helps :-)
Regards
Arne Olav