planitemmanager Element

 

Content

planitemmanager Element

Description

Example

Properties

Description

The planitemmanager Element renders Plan Item details for the Scheduler. For definitions of terminology used in this Element, see these topics:

Scheduler Principles
Scheduler Interface
View and Manage Scheduled Events
Schedule Tasks

Example

See Instrument Certification → Adding a Certification Schedule

planitemmanager Element Properties

Property Name Description
Schedule Plan SDC Id SDC used in the Schedule Plan.
Schedule Plan Item Defines the Schedule Plan Items.
Property Name Description
Filter Defines how Schedule Plan Items are related to the page that hosts this Element.
Option Use When:
PlanAdding this Element to a page in which the primary SDC is Schedule Plan.
NodeAdding this Element to a page in which the primary SDC acts as a parent of the Source SDC (such as the Location SDC is a parent of the SamplePoint SDC).
SourceAdding this Element to a page that acts as a source for Schedule Plan Items (such as SamplePoint or Instrument).
Scheduled TemplateAdding this Element to a page that acts as a template for a Schedule Task (such as the Sample SDC is usually a template for Tasks that create Samples).
Linked Scheduled TemplateAdding this Element to a page that is linked to a Schedule Plan Item through a template. For example, the Product SDC has no relationship to a Schedule Plan Item, but it does have a relationship to a Sample Template. In this case, this link can be used to get Schedule Plan Items that are related to the Product.
SQLNone of the above options can link Schedule Plan Items to your page. This is a SQL query that supports the tokens [sdcid], [keyid1], [keyid2], and [keyid3].
Linked Schedule TemplateIf "Linked Scheduled Template" is selected as "Filter" option (above), these properties define details of the relationship between the primary SDC and template SDC (such as the relationship between Product and Sample SDCs).
Property Name Description
SDCPrimary SDC that is defined by the Schedule Template.
Linked Schedule Template Rules that determine how the primary SDC (above) is linked to the defined SDC by the foreign key columns specified below.
Property Name Description
ColumnColumn of defined SDC.
ValueColumn value. This supports static values and the tokens [sdcid], [keyid1], [keyid2], [keyid3].
SQL If "SQL" is selected as "Filter" option (above), this property further defines the query used to retrieve the Schedule Plan Items.
Property Name Description
Query WhereWhere clause for the query. This supports the tokens [sdcid], [keyid1], [keyid2], and [keyid3].
Node The "Node" is a parent of the Source SDC (such as Location is parent of SamplePoint). This option can be used to show only parents (such as Location) that directly own Schedule Plan Items.
Property Name Description
Show Own"Yes" shows only parents that directly own Schedule Plan Items (such as Location). "No" shows both own and child SDC (such as both Location and SamplePoint) Schedule Plan Items.
Source If "Source" is selected as "Filter" option (above), this option can be used to hide or show randomized Schedule Plan Items.
Property Name Description
Show RandomizedThe choices are "Yes", "No", or "Only Randomized".
View Only Determines if the Element is rendered in read-only mode.
Tab Properties of the tab that contains the detail:
Property Name Description
ShowYes (default) displays the Element.
TextText displayed in the tab header. Optionally Translatable.
WidthWidth of the tab in pixels (defaults to the size of the tab).
body WidthWidth of the content body (text area beneath the tab).
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. Optionally check the box to Translate.
IdIdentifier of the Element (defaults to the Element name).
FunctionJavaScript function to execute onClick.
GroupTab Group in which this Element should be a member. Optionally Translatable.
Foreign Key Collection Foreign Key collection properties:
Property Name Description
IdentifierUnique Identifier for this item.
Column NameColumn Name
Mapping Column NameThe mapped Column name in the primary. This will be searched in both request and primary.
style Rendering style. Grid displays only a tabular grid. GridWithCheckBox adds selection capability through the use of checkboxes.
Button Placement The position of the Button Panel. Choose Top or Bottom.
Buttons Button Property details.
Property NameDescription
IdentifierIdentifies the Button.
ShowYes (default) displays the button.
TextButton text. Optionally check the box to Translate.
WidthWidth of the button in pixels.
Function JavaScript function to execute in response to an onClick event. If you want to use your own custom functions, they must be in the file specified by the include property in the page.
TipTooltip displayed onMouseOver.
ImageImage displayed in the button.
Appearance Offers a choice of the button's overall appearance:
FunctionDescription
standard Default button.
standard_highlight Default button with highlighting on mouseover.
blueDefault button with blue background.
blue_highlightDefault button with blue background and highlighting on mouseover.
MarginIn the CSS, class name that defines the button borders.
styleAdditional attributes you have defined in the CSS used to render the page. This is the "style" attribute of the button tag <sapphire:button>. For guidelines concerning use, see button tag in the LabVantage Custom Tag Reference.
HighlightA value of "true" (default) enables button highlighting (color change in response to mouseover). A value of "false" does not provide highlighting. This is the "highlight" attribute of the button tag <sapphire:button>. For guidelines concerning use, see button tag in the LabVantage Custom Tag Reference.
Plan Item Data Classification Determines whether to show definitional Plan Item columns or all Plan Item columns.
Schedule Plan Column Properties Customize the colors used to display each node.
Property Name Description
Display Type Choose lookup, hidden or dropdown.
Dropdown SQLThe dropdown planids to be shown if the Display Type is dropdown.
Lookup URLThe URL to display upon Lookup.
Default PlanThe Default Plan to use if nothing is selected.
Columns Defines primary columns on the Element:
Property Name Description
IdentifierUnique identifier for this item, rendered as an ID attribute in the HTML tag.
Column IdIdentifier of the SDI column to be displayed.
titleText displayed to identify the Column Id.
Mode Specifies how the input form control (generated HTML input tag) works.
ValueDescriptionDesigned for use with . . .
inputEquivalent to type=text attribute of HTML input tag. As an example, this lets you use the page to add SDIs.Inputs such as the "description" column of SDCs.
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 "Lookup Page" and find a value of "string" data type.SDC data (such as finding SDI Ids or SDC links).
dropdowncomboThis is a dropdownlist (equivalent to HTML select tag that inserts a select form control), but the field is an editable "input" field.Typically used for Reference Type data.
dropdownlist Equivalent to HTML select tag that inserts a select form control.

You can also use this property in conjunction with the Dropdown SQL property (below). This lets you retrieve data resulting from execution of a SQL script specified by the DropdownSQL property.

SDC data and Reference Type data.
checkboxEquivalent to type=checkbox attribute of HTML input tag.Reference Type data. This works the same as it does in HTML, i.e., you need two values. Therefore, use a Reference Type having two Reference Values. The first Reference Value you specify is the "checked" value, the second is the "unchecked".
radiobutton/verticalEquivalent to type=radio attribute of HTML input tag. This arranges the radios vertically within the column.Reference Type data, 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.

Also see the Date Format property (below).

passwordEntry field that displays asterisks for each character you enter.Entering passwords.
retrievedataRetrieves the value in the column but does not render it on the page. Use this when you want to replace the value of another column's property with the value of this column.

For example, if you setup a samplestatus column in retrievedata mode, then setup a pseudocolumn with the value samplestatus: [samplestatus], you will see the actual sample status (value represented by the [samplestatus] variable) in the pseudocolumn. Without using retrievedata mode, the [samplestatus] variable would not be replaced with the actual column value.

This differs from the hidden property above... the hidden property renders the value on the page.

inputareaEquivalent to type=radio attribute of HTML input tag.Use this for large text areas.
default Same as not choosing any of these Mode properties. If you do not choose a Mode property (that is, leave it blank), nodes that inherit this property will never actually be blank... they will inherit the previous node's Mode. So, rather than not choosing any Mode at all, choose "default".
Validation Client-side validation rules for text entered into input fields. These options are similar to those used in the maint Element (see maint Element → Columns → Validation).
TipTooltip for the column value (supports value substitution).
Custom JS If you do not want to use the default validation scripts above, specify your custom validation JavaScript function. If you want to use your own custom functions, they must be in the file specified by the include property in the page.
Link URL Specifies attributes of a hyperlinked title, activated by clicking the text displayed by the title property:
Property Name Description
HRefDestination of the link, specified as a call to the Request Controller.
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 to apply.
Lookup URL Defines the Lookup page. This works only if the Mode property of the column is "lookup".

See Lookup Page Examples for examples of how to use these properties.

Property Name Description
HRefURL to which the Lookup icon is linked.
TipHelp text displayed on mouseover.
SDC Id SDC to use for a custom Lookup page.

If you have specified a Lookup Page, this is ignored.

If you have not specified a Lookup Page, the SDC is obtained from the HRef attributes.

Selector TypeCheckboxes or radio buttons.

You need an Accept button to return these.

If you do not specify a value, the Lookup page uses either the provided List page's set value, or the new List page's defaults.

Multiple items are returned semicolon-delimited.

Restrictive WhereOptional restrictive where clause that either combines with the provided List page's restrictive where clause, or is used as the primary restrictive where clause on the default Lookup page.
Lookup Columns Columns that are either merged with the List page specified by the HRef property, or (if not specified by the HRef property) used to define a new List page:
Property Name Description
IdentifierIf you are overriding/merging with an existing List page, specify the same identifier as the column on the List page. Otherwise, this creates a new column.
Column IdIf merging with an existing List page, if no match can be found for the identifier, this tries to match on a column id. If a match is still not found, a new column is created.
titletitle of the column.
ModeSpecifies how the column is populated:
Display OnlyShow the value, but do not populate the column.
Return OnlyPopulate the column, but do not show the value.
Display and ReturnShow the value and populate the column.
Hidden OnlyHidden fields.
Display ValueValue displayed in place of the corresponding retrieved value (see Display Value below for example).
Pseudo ColumnSee Pseudo Column below for example.
Map to ColumnIf you return more than one column, use this to specify the destination of the returned values.
WidthColumn width in pixels.
SearchableDetermines if the value in the Dynamic Lookup is searchable. See Dynamic Lookups.
Dialog TypeLabVantage modal dialog or the browser's default dialog.
Dynamic LookupEnables the field for Dynamic Lookup. See Dynamic Lookups.
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).
Pseudocolumn A "pseudocolumn" is a column that is rendered on the page, but does not exist in the SDC. Do not choose a database columnid when specifying a pseudocolumn. If you want to access this pseudocolumn using a JavaScript function or another pseudocolumn, specify an identifier of your own choice.

This value you enter can be HTML or a Variable. For example:

If you enter an HTML image tag, then specify a link (using the Link URL property above), the image becomes a hyperlink.
If you use a variable, the variable must point to one of the columns defined by the Column Id property. In this case, you can hide the actual column so that only the pseudocolumn is displayed. For example, you could specify Date: [moddt] to display the date and time a Sample was last modified (such as Date: 8/1/2003 15:36:24), but only if you have previously chosen moddt as one of the columns to be rendered.
Column SpanNumber of columns over which the current column spans (must be less than or equal to the total number of columns).
Size in GridSize of the input field when using the Maint Grid format.
EventsJavaScript function to execute in response to an event occurring on the form control:
Property Name Description
IdentifierUnique identifier for this item, rendered as an ID attribute in the HTML tag.
Event DHTML event that executes the JavaScript function. If you specify an onChange event, see Behavior of onChange Events in maint Elements below.

This also supports an OnKeyUp event.

JavaScriptJavaScript function to execute in response to the event. Your function can be in a *.js file referenced from the page, or in the page itself.
Date Format Format 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.

Dropdown SQL SQL script that retrieves data when the Column Mode property (above) is set to dropdownlist. If two columns are selected, the first column is used as the actual data, and the second column is used as the Display Value.

For example, if you setup a sampledesc column in dropdownlist mode, then specify the DropdownSQL script

select s_productid, productdesc from s_product

the maint Element should render a dropdown list of productdesc for the sampledesc field. If the query is

select s_productid from s_product

the Element should render a list of Product SDIs.

Dropdown RefTypeIf the Column Mode property is dropdownlist, this is the identifier of the Reference Type defining the selectable values.
Dropdown ValueIf the Column Mode property is dropdownlist or dropdowncombo, these are the selectable values.
Dropdown DefinitionIf the Mode is dropdownlist, this retrieves data based on an SDC definition:
Property NameDescription
SDC IdThe SDC for which data is retrieved.
Query FromValue of the From clause for the query.
Query WhereValue of the Where clause for the query.
Query Order ByValue of the Order By clause for the query.
Value ColumnActual column value.
Display ColumnColumn value displayed to users.
Translate Value See Translating Properties in section 2 Properties Overview for details regarding property translation. In general:
"Yes" translates all values in the column regardless of context.
"No" does not translate any values.
"No (Allow Edit Translations)" adds an icon to to the field which (onClick) opens a Translation Maintenance page. This is supported only for column modes input, readonly, lookup, dropdownlist, dropdowncombo, and radiobutton.
Default Value Default value to use when creating new SDIs.

If creating the new SDIs from an SDI Template, the Default Value overrides the value in the Template.

For columns accepting text input, you can specify variables such as [currentuser] (the current user). For columns accepting the date, you can specify relative date format such as [today] or (N+3), the latter meaning "now plus 3 days".

When the Element style is set to render as a Maint Grid, the Default Values are applied to each SDI as you add rows to the grid.

Disable on SaveSets the field to read-only after a Save has occurred.
DisableDisables the field while preserving the original mode.
Group Column where you want to insert a tab or field break. These options are similar to those used in the maint Element (see maint Element → Columns → Group).
Schedule Task Properties Schedule Task Properties:
Property Name Description
Default Lookup TaskTask appearing the Lookup by default.
Schedule Template SDCs Defines Schedule Templates.
Property Name Description
SDCSDC for the Schedule Template.
Lookup Page Defines a custom Lookup page to be used for the Schedule Template.
Property Name Description
HRefDestination URL for the Lookup page.
TipTooltip displayed onMouseOver.
SDC IdIdentifier of the SDC for the custom Lookup page. If you have provided a lookup page above, this is ignored. If not specified, the SDC is obtained from the link properties.
Selector TypeSpecify checkbox to show check boxes or radio bittons to show radio buttons. You will require an accept button to return these. If not specified, it will use either the provided List page's set value, or the new List page's defaults. Mutliple items are returned delimited by semicolon.
Restrictive WhereIf provided, this either combines with the provided List page's restrictive where, or it will be used as the primary restrictive where on the default Lookup page.
Lookup Columns If specified by the HRef property, these are merged with that List page. If not, they are used to define a new List page.
Property Name Description
IdentifierIf you are overriding/merging with an existing List page, specify the same identifier as the column on the List page; otherwise, a new column will be created.
Column IdIf merging with an existing List page and no match on identifier can be found, it will try to match on column. If no match is still found, a new column will be created.
titletitle of the column.
ModeSee Mode.
Display ValueSee Display Value.
Pseudocolumn See Pseudocolumn.
Map to ColumnIf you are returning more than one column, you can use this to specify where you want the values to be returned.
WidthColumn width in pixels.
SearchableDetermines if search capability is added to the Lookup.
Dialog TypeBrowser Popup opens in a browser popup window. Sapphire Dialog opens in a modal LabVantage dialog.
Dynamic LookupYes/No enables/disables Dynamic Lookup. Yes(hide lookup icon) enables but hides the icon.
Add PagePage used for adding new Schedule Templates.
Edit PagePage used for editing existing Schedule Templates.
Max CopiesMaximum number of Schedule Template copies. If set to 1, the "Copies" dropdown is hidden.
Source SDCs Defines the Source SDCs.
Property Name Description
SDC SDC for the Source SDC.
Allow Node SourceThis can be the Source of the Plan Node (applies only to UnManaged Schedule Plans).
Schedule Tasks Defines the Schedule Tasks executed.
Property Name Description
titletitle displayed for the Task.
VisibleDetermines whether to show or hide the Task.
Schedule TaskProperty Tree for the Schedule Task.
Schedule Task NodeProperty Tree Node for the Schedule Task.
Hide JavaScriptAdditional JavaScript to determine if the Task should be hidden. This must be empty or evaluate to "true" in order to show the Task. You can use the variable rowId to get the current row in the Element.
Lookup Page Defines the Lookup page for the Schedule Task.
Property Name Description
HRefDestination URL when the Lookup icon is clicked.
TipTooltip displayed onMouseOver.
SDC IdSDC for the Lookup. If you have provided a Lookup page above, this is ignored. If not, the SDC is obtained from the link properties.
Selector TypeSpecify checkbox to show check boxes or radiobutton to show radio buttons. You need an Accept button to return these. If not specified, it will use either the provided List page's set value or the new List page's defaults. Mutliple items are returned delimited by semicolon.
Restrictive WhereIf provided, this either combines with the provided List page's restrictive where, or it will be used as the primary restrictive where on the default Lookup page.
Lookup Columns If specified by the HRef property, these are merged with that List page. If not, they are used to define a new List page.
Property Name Description
IdentifierIf you are overriding/merging with an existing List page, specify the same identifier as the column on the List page; otherwise, a new column will be created.
Column IdIf merging with an existing List page and no match on identifier can be found, it will try to match on column. If no match is still found, a new column will be created.
titletitle of the column.
ModeSee Mode.
Display ValueSee Display Value.
Pseudocolumn See Pseudocolumn.
Map to ColumnIf you are returning more than one column, you can use this to specify where you want the values to be returned.
WidthColumn width in pixels.
SearchableDetermines if search capability is added to the Lookup.
Dialog TypeBrowser Popup opens in a browser popup window. Sapphire Dialog opens in a modal LabVantage dialog.
Dynamic LookupYes/No enables/disables Dynamic Lookup. Yes(hide lookup icon) enables but hides the icon.
Edit PagePage used for editing existing Schedule Plan Items.
Schedule Plan Node Defines the Schedule Plan Node.
Property Name Description
VisibleDetermines if the Schedule Plan Node Tree is shown.
ExpandedDetermines if the Nodes are initially expanded.
Schedule Plan title ColumnColumn to show as the title for the Schedule Plan Root Nodes. This can contain a SQL subquery.
Schedule Plan Node title ColumnColumn to show as the title for the Schedule Plan Nodes. This can contain a SQL subquery.
Default NodeDefault Node to select in the Node Tree. If noe are selected, no Plan Items are retrieved when the page loads.
Order By Comma-delimited list of columns in the desired sort order. For example, createdt,scheduleplanid,scheduleplanitemid will sort in ascending order beginning with createdt.