Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Latest version number of a document

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hi All,

Through this post, I wish to ask my doubt on the followings:

Is it correct to say that : when we use FetchVersion(volumeID, dataID, versionNUM, objectPATH),

as long as we specify the versionNUM = 0, it will be getting the latest version of the document.

So says that the document to be fetched has 3 versions, the one to be downloaded will be of version 3 (latest)?


Lastly, many thanks in advance,
Devit


 
You are correct,

Here's how it works ,if I have a document id 12345,and I add version 1 thru 15 to it if you look at the versions tab,I will see versions 1 thru 15,I can use the individual functions menu and trim version 8,version 15 and version 3,In this case I am left with 12 versions and version 14 is the highest version.With major and minor versioning employed there is more stuff that you have to account.

The FetchVersion call is designed to give you specific version or in this case when you put 0 the system serves you latest version.

All I was trying to say is if there is version number 3 you cannot pre suppose livelink has 3 versions to it .



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937

Certified OT Developer and probably certfiable,Livelink ECM Champion 2008
 
If I may add to Appnair's valuable post.

Be aware that the version number in vernum=# does not relate to the number of versions available. But to the specific version. So furthering Appnair's example, if version 15 is deleted (trimmed), then the next version added does not become the 'new' version 15, but rather version 16 and 15 is no longer in use. This serves several beneficial purposes, which I won't get into here, but know that vernum=15 in this case will no longer be available as it does not exist.

All the Best!
KHuie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top