sqlview Element

 

Content

sqlview Element

Description

Example

Properties

Description

The sdidetailmaint Element issues a SQL query and renders the results into a detail. This Element does not update any records.

Use this Element for rendering detail data that can not be handled by other detail Elements.

Example

See BioBanking Subjects → Enrollments.

sdidetailmaint Element Properties

Property Name Description
SQL SQL statement to execute for rendering detail data. This supports substitutions as [currentuser] (UserId currently logged in) and [requestparam] (value of any request parameter).
Tab Tab properties:
Property Name Description
ShowYes (default) displays the Element.
TextText displayed in the tab header.
WidthWidth of the tab in pixels (defaults to the size of the tab).
body WidthWidth of the content body (text area beneath the tab). The default is 100%.
body HeightFixed height of the content body. A scrollbar is added as required.
ExpandableYes (default) allows the tab to be expanded and collapsed. No disables this feature and the tab is always expanded.
ExpandedYes (default) initially expands the tab if Expandable property is set to Yes.
HighlightYes (default) highlights the tab on a mouseover event. The CSS defines this.
TipHelp text to appear on mouseover.
IdIdentifier of the Element (defaults to the Element name).
GroupTab group to which this Element belongs.
Buttons Button properties:
Property NameDescription
IdentifierUnique identifier for this item, rendered as an ID attribute in the HTML tag.
ShowYes (default) shows the button.
TextText displayed on the button.
WidthWidth of the button in pixels (defaults to the width of the text on the button).
FunctionJavaScript to execute for an onclick mouse event.
TipHelp text to display for an onmouseover button event.
ImageURL of the image displayed on the button.
AppearanceOptions to select the appearance of the button. If you leave this blank, it defaults to standard.
MarginMargin of the button in pixels.
styleChoose a style, or specify a CSS if you need to define button style using a stylesheet.
HighlightYes (default) highlights the button on mouseover. The CSS defines this.
Columns Column properties:
Property NameDescription
IdentifierUnique identifier for this item, rendered as an ID attribute in the HTML tag.
ColumnIdentifier of the column to be rendered. This ColumnId must exist in the SQL query.
titletitle displayed as the column header.
WidthWidth of the column in pixels.
AlignAlignment of the column (the default is left).
Link URL Specifies attributes of a hyperlinked column:
Property NameDescription
HRefURL specifying the destination of the hyperlink (page to open when clicked).
Target Name of the window in which the child page opens in response to an onclick (default is _self):
ValueOpens in...
_selfSame window
_parentCaller window
_blankNew window
_topBrowser window
TipHelp text displayed on mouseover.
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).
Date FormatFormat in which date/time is displayed, as determined by the user's Locale. For information about how LabVantage handles Locale, see Locale and Time Zone in the topic Internationalization and Localization.

The popup calendar and all date validation routines recognize and function with the chosen format.

If you choose a format that specifies only date (without time), the time defaults to midnight in your time zone. Be advised that this could be a day earlier for a user in a different time zone.

Translate Value"Yes" translates all values in the column (see Translating Properties in section 2 Properties Overview).