Tuesday, 13 August 2013

Hiding attachments from notes document

Hiding attachments from notes document on web browsers :

To hide attachments from web browsers, there is an internal field named "$V2AttachmentOptions" that can be added anywhere to the form. $V2AttachmentOptions works only on Domino 4.6 servers or later. If this field has a value of "0" (a text zero), then all V2 Style file attachments will be hidden from Web clients. Notes clients will still be able to see the attachments. The field should be of the type Text and can be Editable, Computed or Computed for Display as desired. 

If an attachment still appears on web browser then use a Notes client to check the value of $V2AttachmentOptions field. Right-click the document and select the Document Properties and then the second tab, and then highlight the field in the list. The Data Type for the field should indicate Text. If it indicates Number then the field was programmatically set to a value of 0 rather than "0". When setting this field value via a formula or agent be sure that the text value of "0" is used. 

For example :

Formula: 
    Field $V2AttachmentOptions := "0"

LotusScript: 
    doc.~V2AttachmentOptions="0"
or
    call doc.replaceitemvalue("$V2AttachmentOptions", "0")

Note: If setting this field via a formula or agent be sure that the it is set to a text value of "0".

No comments:

Post a Comment