cancel
Showing results for 
Search instead for 
Did you mean: 

Documents Versioning - EP6SP2?

Former Member
0 Kudos

Hi,

I have enabled versioning for my CM repository. With existing versioning system, whenever there is a change in the document, it versions the document as 1,2,3 .. and so on in increasing order.

Is it possible to change versioning method to A,B,C ...so on?

Thanks and Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

No,

the mechanisms that comes up with version names (they are names, not numbers) is wired directly into the repository manager.

You may want to look into using version labels (which can be set programmatically). However they'll probably not show up in the standard user interface...

Best regards, Julian

Former Member
0 Kudos

Hello Julian,

Can you give me more information regarding setting version labels. Do you have code which you can post or can you refer me some documents or apis which i can look into.

Thanks.

Former Member
0 Kudos

You will need to use the extended interfaces IVersionResource, IVersionControlledResource and IVersionHistoryResource.

Using IVersionResource, you can get and set labels on a resource. Using IVersionControlledResource, you can find the RIDs of the version history resource and the versions. Using IVersionHistoryResource, you can get the whole set of labels for the version history.

For instance;

IResource version; // this is a resource version

IVersionResource v = (IVersionResource)version.as(IVersionResource.class);

if (v != null) {

v.addLabel("release");

}

See RFC3253 <http://greenbytes.de/tech/webdav/rfc3253.html> for terminology and concepts and "Repository Framework Concepts" <https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/repository framework concepts> for a good introduction of KM's versioning features.

(Note that support for advanced versioning depends on the repository manager you're using!)

Hope this helps,

Julian

Former Member
0 Kudos

Thanks a log Julian. This is very helpful.

~Vish

Answers (0)