Check Box
The Check Box control is a simple check box that can generate and run different R scripts or Python for Spark scripts for the checked versus the unchecked state. The Check Box control has the following properties:
Identifier. The unique identifier for the control.
Title.
An optional title that appears above the control. For
multi-line titles, use \n
to specify line breaks.
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].
Default Value. The default state of the check box--checked or unchecked.
Checked/Unchecked Script. Specifies the R script or Python for Spark
script that is generated and run when the control is checked and
when it is unchecked. To include the script in the script template, use the value of the Identifier property. The generated script, whether from the Checked Script or Unchecked Script property, will be inserted at the
specified positions of the identifier. For example, if the identifier is checkbox1, then at
run time, instances of %%checkbox1%%
in the script template will be replaced by the value of the Checked Script property when the box is checked
and the Unchecked Script property
when the box is unchecked.
- 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.
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.