Date control
The Date control is a spinner control for specifying date/time values, which include dates, times, and datetimes. The Date control has the following properties:
Identifier. The unique identifier for the control. This is the identifier to use when referencing the control in the script template.
Title.
An optional title that appears above the control. For
multi-line titles, use \n
to specify line breaks.
Title Position. Specifies the position of the title relative to the control. Values are Top and Left where Top is the default.
ToolTip. Optional ToolTip text that appears when the user hovers over the control.
Mnemonic Key. An optional character in the title to use as a keyboard shortcut to the control. The character appears underlined in the title. The shortcut is activated by pressing Alt+[mnemonic key].
-
- Date
- The control specifies a calendar date of the form yyyy-mm-dd. The default run time value is specified by the Default Value property.
- Time
- The control specifies the time of day in the form hh:mm:ss. The default run time value is the current time of day.
- Datetime
- The control specifies a date and time of the form yyyy-mm-dd hh:mm:ss. The default run time value is the current date and time of day.
Default Value. The default run time value of the control when the type is Date. You can specify to display the current date or a particular date.
Script. Specifies the R script or Python for Spark script that is generated and run by this control at run time and can be inserted in the script template.
- You can specify any valid R script or Python for Spark script. For multi-line scripts or long scripts, click the ellipsis (...) button and enter your script in the Script Property dialog.
- The value
%%ThisValue%%
specifies the run time value of the control. This is the default.
Enabling Rule. Specifies a rule that determines when the current control is enabled. Click the ellipsis (...) button to open the Enabling Rule dialog box and specify the rule. The Enabling Rule property is visible only when other controls that can be used to specify an enabling rule exist on the canvas.