Item.ReadParent

Reads a child item, such as an enclosed, forwarded message.

Parameters

Item.drn (Required)

Specifies the GroupWise identifier of the current item.

Item.Child.depth (REQUIRED if greater than 1)

Specifies the depth of the current item and is necessary if greater than 1.

Item.Child.id (Required)

Specifies the child ID of the item to be read. It is possible for the child ID to contain spaces, so you must URL encode this value. For example,

{VAR urlEncode(Item.Child.id)}
User.context (Required)

Specifies the context identifier for this user’s session.

Return Values

Returns the same values as Item.Read.

Example

{! ----------- Close enclosed message -------------------------------
! This closes the reading of a message that is being forwarded or delegated.
! (It was opened from clicking its link on the compose page.)
! ------------------------------------------------------------------}
<FORM Method=Post
   Action="/servlet/webacc">
  <INPUT type="hidden" name="User.context" value="{VAR User.context}">
  <INPUT type="hidden" name="action" value="Item.Action">
  {IF Item.Child.depth > 1}
    <INPUT type="hidden" name="Item.Child.id" value="{VAR Item.Child.id}">
    <INPUT type="hidden" name="Item.Child.depth" value="{VAR
    Item.Child.depth}">
  {ENDIF}
  <INPUT type="hidden" name="Item.drn" value="{VAR Item.drn}">
  <INPUT type="hidden" name="merge" value="msgitem">
  {IF Item.Child.depth > 1}
    <INPUT type="hidden" name="Url.envelope" value="1">
  {ENDIF}
  {IF {STRING Button.type} == "IMAGE"}
    <INPUT Type=image Name="Item.ReadParent"
    alt="{STRING Button.Image.AltText.btnCancel}"
    src="{VAR Templates.Images.url}/btnclose{VAR User.lang}.gif"
    border=0>
  {ELSE}
    <INPUT TYPE="Submit" Name="Item.ReadParent"
    Value=" {STRING Button.Text.btnCancel} ">
  {ENDIF}
</FORM>