dataview Element

 

Content

dataview Element

Description

Options

Example

Properties

Description

The dataview Element renders a form showing data that is not necessarily specific to an SDI. Unlike SDI-specific Elements (such as List, Search, and Maint), the dataview tag can retrieve data from any columns of any tables, then render a form to display the data. However, this Element does not use the SDI mechanisms. Accordingly, it can only render data, and can not take advantage of features provided by SDI-specific Elements.

These Elements are not specific to any Page Type, i.e., you can use them with any Page Type or custom JSP.

Options

Information can be presented in a form (single data item) or grid (multiple data item) style defined by the LabVantage CSS.

Example

The only way you can render a dataview Element is by using a LabVantage Custom Tag. For a comprehensive example, see dataview in the LabVantage Custom Tag Reference.

dataview Element Properties

Property Name Description
style Determines how data are displayed based on page functionality:
ValueDescription
Form Generates a form. This is the page style for displaying a single item.
Grid Generates grid. This is the page style for displaying multiple items.

Functionality of the form and grid are identical. This property determines only which class in the LabVantage CSS renders the style.

Form Columns Number of columns displayed on each row. This applies only to the Form style (above). For example, if you are displaying values from the name and department columns of a table:

Form Columns = 1

nameDr. Clarke
departmentResearch

Form Columns = 2

nameDr. ClarkedepartmentResearch
Columns Specifies attributes of columns on the form or grid:
Property NameDescription
IdentifierUnique identifier for this item, rendered as an ID attribute in the HTML tag.
Column IdIdentifier of the table column to be displayed in the form or grid.
titleText displayed to identify the Column Id.
Mode Specifies how the input form control (generated HTML input tag) works. This tool automatically determines if you have chosen an appropriate mode to display the data (defined in the third column below). If not, it selects an appropriate mode. Possible values:
ValueDescriptionDesigned for use with . . .
inputEquivalent to type=text attribute of HTML input tag.Inputs.
readonlyEquivalent to readonly attribute of HTML input tag.All data.
hiddenEquivalent to type=hidden attribute of HTML input tag.All data.
lookupText field with capability to open a search window and find a value of "string" data type.All data.
dropdownlistEquivalent to HTML select tag that inserts a select form control.All data.
checkboxEquivalent to type=checkbox attribute of HTML input tag.All data.
radiobutton/verticalEquivalent to type=radio attribute of HTML input tag. This arranges the radios vertically within the column.Generally best for choosing from more than two values.
radiobutton/horizontalEquivalent to type=radio attribute of HTML input tag. This arranges the radios horizontally within the column.
datelookupDate field with capability to open a search window and find a value of "date" data type.LabVantage "date" data type.
passwordEntry field that displays asterisks for each character you enter.Entering passwords.
Link URL Specifies attributes of a hyperlinked title, activated by clicking the text displayed by the title property:
Property NameDescription
HRefDestination of the link, specified as a call to the Request Controller. For syntax rules and guidelines, see Request Controller and Variables.
Target Name of the window in which the linked page opens. You can enter any name here, and the new window (browser instance) will automatically assume that name. If you do not specify a target, the linked page opens in the current window.
TipPopup text displayed on mouseover.
CSS ClassClass in the CSS defined for the Layout. The default CSS is WEB-CORE/stylesheets/sapphire.css.
Display ValueValues displayed in place of the corresponding retrieved values. Separate each with a semicolon. For example, if you retrieve values from the createby column, you could specify JDrake=JD. All values retrieved as JDrake would then be displayed as JD. This works only if you replace the entire retrieved string (it does not work on partial strings).
Column SpanNumber of columns over which the current column spans (must be less than or equal to the total number of columns).
Translate ValueYes allows translation of the value.
SQL If the dataset object is not defined, this SQL is executed to create the dataset. This substitution using [sdcid], [keyid1], [sysuserid], and [currentuser].