Hi,
I'm training with DFS and document versions. I create a new document (objectID), then I create some new versions of the document.
I'm able to retrieve all versions created with:
select r_object_id, r_creation_date, **** from dm_document (all) where i_chronicle_id = '...'
If I search documentum for a previous version r_object_id it doesn't found anything.
using select * from <my_document_type> (all) where r_object_id = '<previous_version_id>' my search returns the line.
How can I do to get the content of a previous version? The code I use is this, but DataObiects.Count is always 0.
ObjectIdentity _ID = new ObjectIdentity (new ObjectId (<version_object_id>), _defaultDocbase);
_ID.RepositoryName = _defaultDocbase;
ContentTransferMode trMode = ContentTransferMode.MTOM;
ContentTransferProfile transferProfile = new ContentTransferProfile ();
transferProfile.Geolocation = "Pleasanton";
transferProfile.TransferMode = trMode;
_serviceContext.SetProfile (transferProfile);
ContentProfile _cp = new ContentProfile ();
_cp.FormatFilter = FormatFilter.ANY;
OperationOptions _oo = new OperationOptions ();
_oo.ContentProfile = _cp;
_oo.SetProfile (_cp);
ObjectIdentitySet _idSet = new ObjectIdentitySet ();
List<ObjectIdentity> _idList = _idSet.Identities;
_idList.Add (_ID);
DataPackage _dp = _objectService.Get (_idSet, _oo);
if ( _dp.DataObjects.Count == 0 )
{
<this is always 0>
Thank you in advance
Aqualung