Getting latest file using documentum_id
I have a use case where the user is modifying the same file in each iteration keeping the version field in Documentum same. Initially, the file was created and checked into webtop server with version 1.0. Later on, the user makes some changes to the original file and uploads the file with new changes with the same version 1.0. The version is the same on webtop, but the original file is getting updated.
Using DQL how do we get the latest file? This is the code I have -
IDfId sysObjId = idfSession.getIdByQualification("nexus_doc where r_object_id='" + documentumId
+ "'AND (\"final_flag\" = TRUE)");
if (sysObjId != null) {
document = (IDfDocument) idfSession.getObject(sysObjId);
SimpleDateFormat sdformat = new SimpleDateFormat("yyyy-MM-dd");
But I always get the original copy of the file and not the latest version with the changes.
Appreciate any inputs.
Comments
-
@sudh_ysk , sorry for the delay. I have moved your post to our Documentum category.
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 105 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management