Spaces/Official ESi/Scriptaculous & Adv. Tags

viewlink

Andrew Donnan
posted this on November 25, 2008 12:28

<viewlink name="Detail" type="button">View Detail</viewlink>

 

<viewlink name="Significant Events" type="button" board="Significant Events">View Significant Events</viewlink>

This tag allows you to jump from one view to another. Useful when used with a List and a Details view.

Attributes:

  • name: the name of the view to jump to (case sensitive)
  • type: controls appearance of viewlink. If type is button, outputs button, if omitted, outputs a hyperlink
  • table: If linking to another view that is associated with another table you must specify the table.

Tips:

  • Useful for list/detail display views.
  • Include a returnbutton tag to take you back to the first view.
  • A viewlink within the eocrepeatallrecords block will allow you to edit an existing record, whereas a viewlink outside of the eocrepeatallrecords block will create a new record.

The <viewlink> tag has been modified in WebEOC 7.2 to allow view linking to views in other boards and to specify the view linking behavior when working with embedded views.

Attributes

All of the following attributes are optional except the name attribute.

  • name – This is the name of view to viewlink to. This attribute is required.
  • type – This link|button attribute determines whether or not to render the viewlink as a link or as a button. The text of the link or button is the contents of the viewlink tag. The default text is set to “Link.”
  • board – This is the name of the board that contains the view to be viewlinked to. If you do not specify a board, the current board is assumed.
  • target – This is the id of the embedded view in which the viewlink should execute. In addition to the id of an embedded view, the following values can be specified.
  • ○ self – This is the current view, embedded or otherwise. This is the default.
    ○ parent – This is the view that contains the current view. If the current view is not embedded, then it is identical to self.
    ○ top – This is the topmost view.
 
Topic is closed for comments