Content

Description

Properties

Specialized Token Support

 
 

 

 

Description

Top../images/arwup.gif (846 bytes)

The imagemapgizmo displays an image with imagemaps (clickable hotspots). This is useful for operations such as showing a clean room with highlighted possible areas of contamination, aerial photo of a facility with sample points identified, and providing an alternate means of navigation through the product (such as using a data model diagram to navigate to SDI Maintenance pages).

To construct the imagemap, a raw file or image Attachment can be used. A "Hotspot Editor" lets you identify hotspots on the image. Each hotspot can have its own URL and counter. The imagemapgizmo can also be used in Dashboards as a parametergizmo to drive queries of other Gizmos.

The OOB LabVantage application provides preconfigured example Gizmos based on the imagemapgizmo.

  

Properties

Top../images/arwup.gif (846 bytes)

The following properties are used to configure Gizmos based on the imagemap Gizmo Type: 

Property Name Description
Gizmo Properties Defines high-level characteristics of the Gizmo:
Property NameDescription
title title text displayed on the Gizmo.
Help TextTooltip displayed onMouseOver.
title Color Color of the title text displayed on the Gizmo. This is typically a text string, but it some cases it can be defined conditionally using a Groovy expression. Example Groovy expression: gizmo.count > 10 ? "Red" : "Green".
ImageImage to use for the Gizmo.
Show GizmoYes/No shows/hides the Gizmo.
Refresh on Timer (sec)This activates a timer to refresh the count every n seconds.
Notify Count ColorColor of the counter displayed on the Gizmo. This is typically a text string, but can be defined conditionally using a Groovy expression. Example: gizmo.count > 10 ? "Red" : "Green".
WidthWidth of the gizmo in pixels.
HeightHeight of the gizmo in pixels.
Enable ResizeYes/No allows/prevents resizing of the gizmo.
OptionsDetails concerning properties that appear on options dialogs:
Property NameDescription
Property Id Identifier of the property that appears on an options dialog. If this is in a collection or property list, include the full path using the dot character (.) as a separator.
EditableNo disables editing of the property, but it will still be visible.
Source Details Defines details concerning the Image used for the Gizmo.
Property NameDescription
Source SDCSDC associated with the "Image Source" below. For example, this can be a "Location" to which the image pertains.
Source KeyId 1

Source KeyId 2

Source KeyId 3

SDI KeyIds for the Source SDC. The lookup ellipsis for Source KeyId 1 loads the lookup page for the SDC ([SDCId]Lookup).

If "Image Source" is "Attachment", these identify the SDI that contains the Attachment.

Image Source Source of the Image, indicating whether it is derived form an "Image" (image file) or "Attachment" (LabVantage Attachment SDI).

In order to use the "Image" option, the images must be bundled in the WAR folder. This may make this option unsuitable for adding new Gizmos to a production system.

When using the "Attachment" option, choose the Source SDC and the Source KeyId 1/2/3 for the SDI holding the image Attachment.

FileIf "Image Source" is "Image", this is the image file.
Attachment ClassAttachment Class for the Image (see Attachments). "ProfilePicture", "SOP", and "ImageMap" are provided OOB.
Override WidthDetermines if the image height overrides the image width. By default, the image is displayed according to the size of the master image. Use this to specify an alternative size.
Override HeightDetermines if the image width overrides the image height. By default, the image is displayed according to the size of the master image. Use this to specify an alternative size.
HotSpot Map Defines details concerning the hotspots on the image. Click the "Add" button to add a new hotspot. This opens a hotspot editor where you can define the coordinates of the hotspot. These coordinates can be edited using the coordinate editor ( "..." button).

Coordinates are stored in pixels relative to the image and represent the (top, left, bottom, right) coordinates of the hotspot rectangle.

The hotspot editor lets you drag and resize the highlighted area to define the coordinates of the hotspot. In add mode, you can also define the hotspot label using the editor.

Property NameDescription
Coordinates Top, Left, Bottom, Right (in pixels)
Counter Query TypeDetermines how the counter on the hotspot is defined ("SDI List" or "SQL"). Use "SDI List" to enforce LabVantage security.
Counter Query SDCIf "Counter Query Type" is "SDI List", this is the SDC for the SDI that defines the counter on the hotspot.
Counter Query FromIf "Counter Query Type" is "SDI List", this is the From Clause to retrive SDIs.
Counter Query WhereIf "Counter Query Type" is "SDI List", this is the Where Clause to retrieve SDIs.
Counter SQLIf "Counter Query Type" is "SQL", this is the query that defines the counter on the hotspot.
Label title for the hotspot.
TipTooltip displayed onMouseOver the hotspot.
URLDestination URL when the hotspot is clicked. This support
TargetIf the Target is left blank, the new page will open in place of the Gizmo. If a target is provided, the page will open in a new tab. Each Gizmo can also be associated with a "Source KeyId 1/2/3" below . This SDI can be used to substitute into a common count SQL and URL, and is also used to drive the parameters when the Gizmo is on a Dashboard.
Link SDC SDC for the SDI underlying the hotspot.
Link KeyId 1

Link KeyId 2

Link KeyId 3

KeyIds of the SDI underlying the hotspot. The lookup ellipsis for Link KeyId 1 loads the lookup page for the SDC ([SDCId]Lookup).
Label CSSCSS style properties for the "Label".
Default Counter Query Type Default override for the "Hotspot Map" settings ("SDI List" or "SQL"). You can substitute [keyid1] and [attachmentkeyid1] for the Attachment SDI.

Rather than duplicating the same Counter or URL for each hotspot, the "Default" settings let you define a single "Default" property and substitute in the Source KeyId 1/2/3 for each hotspot. You can also substitute the [attachmentkeyid1] of the SDI holding the attachment (if used). If using the "SDI List" Query Type, substitution also occurs on the querywhere argument. For example, the default Count SQL might be SELECT count(*) FROM s_sample WHERE samplepointid='[keyid1]'.

Default Counter Query SDC Default override for the "Hotspot Map" settings. If "Default Counter Query Type" is "SDI List", this is the SDC for the SDI that defines the counter on the hotspot.
Default Counter Query From Default override for the "Hotspot Map" settings. If "Default Counter Query Type" is "SDI List", this is the From Clause to retrieve SDIs.
Default Counter Query Where Default override for the "Hotspot Map" settings. If "Default Counter Query Type" is "SDI List", this is the Where Clause to retrieve SDIs.
Default Counter SQL Default override for the "Hotspot Map" settings. If "Default Counter Query Type" is "SQL", this is the query that defines the counter on the hotspot.
Hotspot Count Color Color of the Hotspot Counter. This is typically a text string, but can be defined conditionally using a Groovy expression. Example: gizmo.count > 10 ? "Red" : "Green".
Show Zero Count Determines what to do when the count goes to zero ("Show", "Hide", or "Show Image").
Zero Image If "Show Zero Count" is "Show Image", this is the image to display when the count goes to zero.
Default Label CSS Default CSS style properties for the "Label".
Default URL Generic URL to use (substitute [keyid1] if required).
Default Target Generic target. Leave this blank to navigate inline.
Hotspot Coloring Color of the Hotspt opacity highlight. This is useful when the background color of the image is white.
Show Mouse Over Hotspot Determines if the Hotspot is highlighted onMouseOver. Highlighting the hotspot area may not be needed if using a touch device (which has no mouseover event). In addition to the mouseover, you can choose to show an icon which, when clicked, will toggle a display of all hotspots and their labels.
Hotspot Indicator Defines characteristics of the HotSpot Indicator:
Property NameDescription
Show Indicator Determines if an indicator icon is shown. This icon toggles the hotspot areas.
ImageImage to use for the icon.
Image Size (e.g. 32)Size of the image.
PositionAllows the Hotspot Indicator to be positioned relative to the image. The choices are Top Left, Top Center, Top Right, Midddle Left, Middle Center, Middle Right, Bottom Left, Bottom Center, Bottom Right, and Custom. Custom allows a left/top offset to be specified (in pixels) from the top left position (this is backward-compatible with LV 8.0).
Custom Offset LeftIf "Position" is "Custom", this allows a left offset to be specified (in pixels) from the top left position. This behavior is backward-compatible with LabVantage 8.0.
Custom Offset TopIf "Position" is "Custom", this allows a top offset to be specified (in pixels) from the top left position. This behavior is backward-compatible with LabVantage 8.0.
Parameter When used on a Dashboard, the imagemapgizmo can be used as a parametergizmo to drive the display of other Gizmos such as the listgizmo. To use this functionality, you must provide a "Source KeyId 1/2/3" for each hotspot, provide a "KeyIid 1/2/3 Parameter" property that defines the name of the parameter for each key. Provide a list of the parameterized Gizmos to be refreshed whenever a hotspot is clicked. Then, parameterize the SQL of other Gizmos on the Dashboard (such as samplepointid='[samplepointid]').
Property NameDescription
KeyId 1 Parameter

KeyId 2 Parameter

KeyId 3 Parameter

Name of the parameter that the Source KeyId 1/2/3 is sent through to other parameters.
Refresh TheseList of other Gizmos to refresh.
Sidebar Count Defines characteristics of the Counter in the Sidebar. Each hotspot can have a Counter to display a numeric value in the center of the hotspot. Use these properties to define characteristics os the Counter. You can specify either of the following:
Specify some raw SQL that returns a single numeric value (usually using select count(*) ...).
Break the SQL into SDC, queryfrom, and querywhere. This will ensure that LabVantage security is applied to the SQL.
Property NameDescription
Query Type Determines how the count is defined ("SDI List" or "SQL")
SDI Request If "Query Type" is "SDI List", this defines the SDIs:
Property NameDescription
SDC SDC for the SDIs.
QueryQuery to retrieve the SDIs.
Query ParametersParameter to use for the query.
Query FromFrom clause.
Query WhereWhere clause.
SQLSQL that returns a numeric value.

 

Specialized Token Support

Top../images/arwup.gif (846 bytes)

KeyId Substitution

 

Token substitution of KeyId is supported by the properties "Hotspot Map → URL", "Hotspot Map → Counter SQL", "Hotspot Map → Counter Query Where", "Hotspot Map → Label", "Sidebar Count → SQL", and "Sidebar Count → Query Where":

[keyid1] or [linkkeyid1] can be substituted for the value of Hotspot Map → Link KeyId 1 (or Link KeyId 2 or Link KeyId 3).
[attachmentkeyid1] or [sourcekeyid1] can be substituted for the value of Source KeyId 1 (or Source KeyId 2 or Source KeyId 3).

Any remaining token values will be substituted with values passed into the Gizmo through the request. For example, a [location] token could be substituted using rc?command=gizmo&gizmo=MyImage&location=Here.

KeyId Column Substitution

 

In addition to substituting the KeyId of either the Source SDI or Link SDI value (such as using [linkkeyid1] or [sourcekeyid1] as shown above), a column from that SDI can also be substituted using this syntax:

[linkkeyid1.columnid] or [sourcekeyid1.columnid]

Note that [keyid1] and [attachmentkeyid1] are also supported. For example, consider a floor plan image with a hotspot that is linked to a Location with KeyId "Room 101". When clicking the hotspot, your intent is to navigate the User another imagemap defined in a column on Location "Room 101". To achieve this, we can configure the properties as shown below: