Attachment.View

Views the specified attachment.

Parameters

User.context (Required)

Specifies the context identifier for this user's session.

Provider.name (Required)

Specifies the name of the GroupWise WebAccess provider: GWAP.

Item.type (Required)

Specifies the type of the item:

  • AREF HTML representation of the document
  • HREF Native document (open in local browser plug-in or helper application)
Item.Attachment.id(Required)

Specifies the identifier of the attachment to be saved.

Item.drn (Required)

Specifies the identifier of the item to which this attachment is associated.

Return Values

Returns an HTML version of the attachment, if a conversion is possible.

Remarks

Viewing an attachment requires that some of the parameters be specified in the extra path info attribute of the URL. (The extra path info attribute is the portion of the URL that follows the servlet name and precedes the question mark.)

The parameters must to occur in the following order:

/servlet/webacc/User.context/Provider.name/Item.type/Item.Attachment.id

If Item.type is AREF, an HTML version of the attachment is returned (if a conversion is possible). If Item.type is HREF, the document is returned in its native format. If an appropriate viewer exists on the user's machine, the document is displayed in that viewer. Otherwise, the user is asked to save the file to disk.

Example

<A href="/servlet/webacc/qopkOafrnfAq/GWAP/AREF/1?
action=Attachment.View&Item.Attachment.id=1&User.context=
qopkOafrnfAq&Item.drn=1773z3z1757"> View </A>