How can I fetch a docbase document throuugh DRL using chronicle ID
How can I fetch a document through DRL using chronicle ID.
The requirement is to fetch the latest version of the document with DRL.
- We cannot use object ID in the DRL because document can be versioned.
- We cannot use version number/Number in the DRL because the version label can change.
Please advice
Best Answer
-
Extend the DRL component in your custom layer and override the onInit method, where in before calling super.onInit() method, get the id from argument list check if this is of type dm_document or any subtype, execute query to fetch the latest version of document using it and replace the id (retrieved from query) in argument list.
0
Answers
-
Extend the DRL component in your custom layer and override the onInit method, where in before calling super.onInit() method, get the id from argument list check if this is of type dm_document or any subtype, execute query to fetch the latest version of document using it and replace the id (retrieved from query) in argument list.
0 -
We are building the DRL through DFC based application. We wont be extending any componet from WDK
0 -
correct, but DRL will invoke the Webtop application to fetch document and that time only you need to fetch latest version of document, for this reason I have suggested to extend Webtop component.
Or do you have handle on client application which invokes DRL ?
0 -
The drl components have an optional chronicleid parameter that you could look to use, never used it myself so can't help on what it actually does, but the manuals should give some idea. I'd guess that is a chronicleid is passed and auto drl resolution is set then it will look for the latest version (perhaps).
0 -
This works in 6.5 sp2...
http://<server>/webtop/drl/objectId/<Your Object Id>/versionLabel/CURRENT
-matt
0 -
Thank you everyone for your response.
As mentioned in the post we can not append version level CURRENT is the DRL as it is prone to change.
The only way I see is to customize the DRL componet to fetch the most recent document.
0 -
What do you mean "prone to change"? To append "/versionLabel/CURRENT" to DRL still requires customization to DRL component, so I dont know what your hesitation is. The only difference is that this uses out of the box functionality instead of manually querying for current version ID given i chronicle ID.
0 -
Hi Johnny
Above informations are very useful to me.In the above scenario, if the user having access only to current version of the document , he doesn't have access all the other old versions including base version.
in this case , If user uses the the base version or any other version DRL he was not able to view the current version of the document.The DRL used by the user to view documents ,has object id and version details.
If I generate the DRL with chronicle ID instead of object ID , it will work? or need to customize the DRL component.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management