Unable to delete all of the default stamp annotations in the FileNet Workplace Viewer (Daeja Viewer) and add new custom stamps

Technote (troubleshooting)


Problem(Abstract)

The desired behavior is users should not be able to see or use the default stamps normally available in the FileNet Workplace Viewer (Daeja Viewer). They should only be able to see and use the custom stamp annotations created for their business needs.

Symptom

Users are able to see and use the default stamps in the Daeja Viewer and they should only be able to use custom stamps created for their specific business needs.


Environment

FileNet Application Engine

Diagnosing the problem

The Daeja Viewer default Stamps are accessible to the users.

Resolving the problem

The following instructions describe how to remove the default stamp annotations displayed in the Daeja Viewer and add custom ones:


  1. Stop the Application Server hosting Workplace.

  2. Edit the WCMJavaViewer.jsp file (.../Workplace/UI-INFjsp/ui).

    Find the following section in the WCMJavaViewer.jsp file:

    <%-- Note: The following list provides configuration parameters for the Image Viewer. Many of these parameters are necessary for P8 to function normally. Please do not modify any of the FileNet parameters. I've added comments to point out these parameters. --%>

    Add the following HTML parameters to the above section of the file to remove the default stamp annotations:

    function yourEventHandler(id, text)
    {
    if (id == 22)
    ViewONE.clearAnnotationStamps();
    }
    writeParam('eventHandler', 'yourEventHandler')
    writeParam('eventInterest', '22')

  3. Depending on the type of Application Server, recreate the app_engine.war or app_engine.ear file and redeploy the FileNet Workplace or FileNet WorkplaceXT application.

  4. If Custom Stamps were previously added to the Daeja Viewer then delete the lines for the custom stamps from the WcmJavaViewer.jsp file and add the custom stamps back using the following format.

    ViewONE.insertAnnotationStamp(text, beforeIndex, properties); // insert own stamp item

The following example shows the removal of the Daeja Viewer default stamps and the adding of two custom stamps:
    function yourEventHandler(id, text)
    {
    if (id == 22)
    ViewONE.clearAnnotationStamps();
    ViewONE.insertAnnotationStamp("my stamp", 0, null);
    ViewONE.insertAnnotationStamp("ADDL MAIL", 0, "<Menu=MAIL><FontHeight=12>");
    }

    writeParam('eventHandler', 'yourEventHandler')
    writeParam('eventInterest', '22')

Rate this page:

(0 users)Average rating

Document information


More support for:

FileNet Content Manager
Application Engine

Software version:

3.5.1, 4.0, 4.0.2

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1402963

Modified date:

2012-09-04

Translate my page

Machine Translation

Content navigation