cancel
Showing results for 
Search instead for 
Did you mean: 

Perform automatic checkout

johnnyecm
Champ in-the-making
Champ in-the-making
Hi,
we
are in an IBM CM environment and are using your OpenWorkdesk => is it possible to perform an automatic checkout when the user opens a document in the IBM Generic Viewer? If so, can you please provide some sample code?
Thanks

Best regards,
JohnnyECM
1 REPLY 1

chfi
Champ in-the-making
Champ in-the-making
Hi,

that is quite simple => just open the "IBMCMThinViewer.jsp" that is located in your deployment in the folder "viewer/ibmcm" ==> you have already access to the document itself (variable "obj") ==> just perform the following operation on this variable:

obj.getVersion().checkout(null);

Hope this helps
Christian