Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to enable KM Versioning for a Folder in Room Template?

Hi Collaboration Gurus,

we are using SAP NW Portal 7.0, SP14.

I have created a new customer Room Template in Collaboration, which contains one Extension named "Documents".

When i create a new Room based on these Template i me able to see a new Folder for Documents created in the Room, which is Correct.

@My Question is:

How can i by default enable the KM-versioning for this new created Folder in the Room automaticlly,

Can i do these through my Room Template Extension or maybe through the Mappings..??

Many Thanks in advance,

Regards,

Nazih

Former Member
replied

Hi Nazih,

With the room extension to create the folder, one of the output parameters is the KM path. This you would have to use as an input parameter for your own extension which switches on versioning on that folder. That's all. Then, from within your extension, you get the KM path, and can switch on versioning on that. The extension point to be used would be ON_CREATE_ROOM. A fast way to switch on versioning on a folder is as follows:

FolderSettings settings = new FolderSettings(coll);
settings.setEnhancedFlag(true);

Hope it helps

Detlev

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question