IBM Support

How to custom annotation stamp in IBM Daeja ViewONE with Workplace or WorkplaceXT?

Question & Answer


Question

We want to add some custom annotation stamp, but the default annotation stamp missing. How can we keep the custom annotation stamp with default annotation stamp work together?

Cause

If you custom annotation stamp, the default annotation stamp will be missing, it work as designed.
You can use the parameter to add the default annotation stamp.

Answer

1) Stop the Websphere service.
2) Backup WCMjavaviewer.jsp(Workplace/WorkplaceXT) from example folder:
C:\Program Files (x86)\IBM\FileNet\WebClient\WorkplaceXT\UI-INF\jsp\ui\iviewpro\WcmJavaViewer.jsp
3) Please edit WcmJavaViewer.jsp file, add the default stamp line after any writeParam parameter at below, then add custom stamp after this.
writeParam('annotationStamp1', '<date>');
writeParam('annotationStampProperties1', '<Menu=[date] [time]><FontHeight=20><color=255,0,0><rotation=0>');

writeParam('annotationStamp2', 'Approved <userid> <dateonly>');
writeParam('annotationStampProperties2', '<Menu=Approved [user] [date]><FontHeight=20><color=0,0,255><rotation=45>');

writeParam('annotationStamp3', 'DRAFT');
writeParam('annotationStampProperties3', '<Menu=DRAFT><FontHeight=20><color=213,213,213><rotation=45>');

writeParam('annotationStamp4', 'Filed <dateonly>');
writeParam('annotationStampProperties4', '<Menu=Filed [date]><FontHeight=20><color=0,0,255>');

writeParam('annotationStamp5', 'Received <dateonly>');
writeParam('annotationStampProperties5', '<Menu=Received [date]><FontHeight=20><color=5,88,19>');

writeParam('annotationStamp6', 'Rejected');
writeParam('annotationStampProperties6', '<Menu=Rejected><FontHeight=20><color=0,255,255><rotation=45>');

writeParam('annotationStamp7', 'Reviewed <userid> <dateonly>');
writeParam('annotationStampProperties7', '<Menu=Reviewed [user] [date]><FontHeight=20><color=255,0,0>');

writeParam('annotationStamp8', 'Urgent!');
writeParam('annotationStampProperties8', '<Menu=Urgent!><FontHeight=20><color=255,0,0><fillcolor=255,255,0><rotation=45>');

4) Save the jsp file.
5) Depoly the Workplace/WorkplaceXT ear or war file.
6) Update the ear file to Websphere console.
7) Start the Websphere service.
8) Enure the parameter changed in a new WcmJavaViewer.jsp at below folder, for example:
WebSphere\AppServer\profiles\AppSrv01\installedApps\ECMDEMO1Node01Cell\WorkplaceXT.ear\web_client.war\UI-INF\jsp\ui\

[{"Product":{"code":"SSTTN8","label":"IBM Daeja ViewONE Virtual"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"4.1.5;4.1.4;4.1.3;4.1.2;4.1.1;4.1;4.0","Edition":"Standard;Professional","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 January 2021

UID

swg21965036