templateselector Element

 

Content

templateselector Element

Description

Example

Properties

Description

The templateselector Element selects one or more SDI Templates. It lets you choose the SDI Template to be created, as well as the number of copies to create. Templates can be created for single-key and multi-key SDCs.

Example

The option to select a single SDI Template is on the left. The multiple template option is on the right.

templateselector Element Properties

Property Name Description
SDC SDC for which the SDI Templates are created. This is mandatory.
style Determines if the Template selector is configured as a "Dropdown" (dropdown list) or "Lookup" (dynamic lookup). If "Lookup", the "Template Lookup Page" property specifies the lookup page.
Single or Multiple Templates Specifies whether the Element allows selection of one (single) or multiple (multiple) SDI Templates.
Template Inputbox Name Identifier or Name of the HTML input element for the SDI Template. Default values:

template (when the selector row is single)

template_[index] (when the selector rows are multiple).

This supports use of the variable [sdcid] in the identifier.

Copies Inputbox Name Identifier or Name of the HTML input element for copies of the SDI Template. Default values:

copies (when the selector row is single)

copies_[index] (when the selector rows are multiple)

This supports use of the variable [sdcid] in the identifier.

Template Retrieval Properties used to retrieve SDI Templates:
Property Name Description
Template Lookup Page When "style" is "LookUp", this is the Template lookup page. If this is left blank, a default lookup page is used.
ShowYes (default) shows the lookup.
QueryIdIf you are using a LabVantage Query SDI to locate the SDI Templates, this is the identifier of the LabVantage Query. This works only if the style is dropdown. If it is a lookup, configure this on the lookup page.
Query From If you are using a SQL query to locate the SDI Templates, this is the from clause. The Element will display a list of templates based on this from clause. Use this with Query Where (below). This works only if the style is dropdown. If it is a lookup, configure this on the lookup page.

This has no effect if you use a LabVantage Query SDI.

Query Where If you are using a SQL query to locate the SDI Templates, this is the where clause. The Element will display a list of templates based on the from and where clauses.

If "style" is "Lookup", the Templates can be filtered by setting the where clause using only the "Query Where" property.

This has no effect if you use a LabVantage Query SDI.

Mandatory Yes makes selection of SDI Templates mandatory. This property takes the option "none" from the template dropdown. This works only if the style is dropdown and the selector row is single. For other cases, check the mandatory status from the onchange and callback javascripts. If you leave this property blank, Template selection will not be mandatory.
Default Template Identifier of the default template. This works only if the selector row is single.
Allow ModificationYes (default) allows modification of the Default Template (above).
Copies This determines the number of SDI Template copies that are created:
Property Name Description
ShowYes (default) shows the copies input box. If no option is selected, then by default it will be shown.
Default CopiesNumber of copies made by default. If no value is specified, the default is one.
Callback Button The Callback button is an extra button that you can configure for any purpose.
Property NameDescription
ShowYes (default) shows the button.
TextText displayed on the button.
Image URL of the image displayed on the button.
WidthWidth of the button in pixels.
IDIdentifier of the button tag in the JSP.
ActionJavaScript to execute for an onclick button event.
Onchange Callback function The Onchange Callback Function is called when the SDI Template or the Copies input cell is modified:
Property NameDescription
Enable for Template FieldFires the onchange event on the template input field (when the SDI Template is modified). This defaults to Yes if an Action is specified below.
Enable for Copies FieldFires the onchange event on the copies input field (when the number of copies is changed). This defaults to Yes if an Action is specified below.
ActionJavaScript function to call when the onchange event fires on the template or copies input field.
Template Info Link The Template Info Link is used to view the contents of an SDI Template.
Property NameDescription
ShowYes (default) will shows the info link icon.
PageMaintenance Page to open when the info icon is clicked, specified as a call to the Request Controller. This appends keyid1=[templateid] to the URL and launches the page in a new window.
Multiple Templates Maximum and minimum number of SDI Templates permitted:
Property NameDescription
Max Templates (rows)Maximum templates allowed in rows. If multiple templates are selected, they appear in separate rows.
Initial Templates (rows)Initial number of rows displayed (the default is zero).
Add Remove Template Buttons The Add and Remove buttons are used to maintain the list of SDI Templates:
Property NameDescription
Add button Specifies properties of the Add button:
Property NameDescription
ShowYes (default) displays the Add button.
TextText displayed on the button.
Image URL of the image displayed on the button.
WidthWidth of the button in pixels.
IDJavaScript to execute when the button is clicked.
Remove button Specifies properties of the Remove button:
Property NameDescription
ShowYes (default) displays the Remove button.
TextText displayed on the button.
Image URL of the image displayed on the button.
WidthWidth of the button in pixels.
IDJavaScript to execute when the button is clicked.
Label Texts Determines text labels displayed on the Element:
Property NameText displayed above...
Copies LabelField for entering the number of copies.
Select TemplateSelecting a Template.
Template DetailsSpecifying Template information.
Reload Using TemplateReloading a Template.