Options
element
identifies the options that are required in order to run the task.
The Option
tag, which is the only child of
the Options
element, describes the assigned
option.
Attribute
|
Description
|
---|---|
name |
specifies the name assigned
to this option.
|
defaultValue |
specifies the initial
value for the option.
|
inputType |
specifies the input
control for this option. Here are the valid values:
For more information,
see
Supported Input Types.
|
indent |
specifies the indention
for this option in the task interface. Here are the valid values:
|
returnValue |
applies to strings that
are used by input types (such as
combobox and select )
where the user has a selection of choices. If the returnValue attribute
is specified in other contexts, this attribute is ignored.
For more information,
see
Specifying a Return Value Using the returnValue Attribute.
|
checkbox
are 0
(unchecked)
and 1
(checked).
<Option name="GROUPCHECK" inputType="string">CHECK BOX</Option> <Option name=labelCheck" inputType="string"> An example of a check box. Check boxes are either on or off.</Option> <Option name="chkEXAMPLE" defaultValue="0" inputType="checkbox"> Check box</Option>
Attribute
|
Description
|
---|---|
required |
specifies whether a
value is required. Valid values are
true and false .
The default value is false .
Note: If the
required attribute
is set to true and no default value is specified,
the user must select a color to run the task.
|
<Option name="GROUPCOLOR" inputType="string">COLOR SELECTOR</Option> <Option name="labelCOLOR" inputType="string">An example of a color selector.</Option> <Option name="colorEXAMPLE" defaultValue="red" inputType="color"> Choose a color</Option>
Attribute
|
Description
|
---|---|
required |
specifies whether a
value is required. Valid values are
true and false .
The default value is false .
Note: If the
required attribute
is set to true and no default value is specified,
the combobox control displays the text specified in the selectMessage attribute.
|
selectMessage |
specifies the message
to display when a value is required for the combobox control and no
default value has been set. The default message is
Select
a value .
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
<Option name="GROUPCOMBO" inputType="string">COMBOBOX</Option> <Option name="labelCOMBO" inputType="string">An example of a combobox.</Option> <Option name="comboEXAMPLE" defaultValue="value2" inputType="combobox" width="100%">Combobox:</Option> <Option name="value1" inputType="string">Value 1</Option> <Option name="value2" inputType="string">Value 2</Option> <Option name="value3" inputType="string">Value 3</Option>
Attribute
|
Description
|
---|---|
format |
specifies the format
of the date value. You can use any valid SAS date format. If no format
attribute is provided, it defaults to mmddyys8. (12/24/93).
|
required |
specifies whether a
date is required. By default, no date is required.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
defaultValue
attribute
for this input type, the value must be in ISO8601 format (yyyy-mm-dd).
<Option name="GROUPDATE" inputType="string">DATE PICKER</Option> <Option name="labelDATE" inputType="string">An example of a date picker.</Option> <Option name="dateEXAMPLE" inputType="datepicker" format="monyy7.">Choose a date:</Option>
Attribute
|
Description
|
---|---|
required |
specifies whether a
value is required. The default value is
false .
Note: If the
required attribute
is set to true and no default value is specified,
the combobox control displays the text specified in the selectMessage attribute.
|
selectMessage |
specifies the message
to display when a value is required for the combobox control and no
default value has been set. The default message is
Select
a value .
|
source |
specifies the role to
use to get the distinct values. The
maxVars control
for the role must be set to 1. In other words, users can assign only
one variable to this role.
|
max |
specifies the maximum
number of distinct values to obtain and display in the UI. By default,
the maximum value is 100. Larger maximum values might cause a long
delay in populating the UI control.
Note: Missing values are ignored,
so missing values do not appear in the list of distinct values.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
Datasources
element because an
input data set is required to run this task. Then in the Roles
element,
you specify that only one response variable is required to run this
task. The name
attribute for this role is
VAR.
source
attribute
specifies that the values that appear in the Age of interest option
come from the VAR role (in this example, the Age variable).
max
attribute
specifies that a maximum of 15 values should be available for the Age
of interest option.
<DataSources> <DataSource name="DATASOURCE"> <Roles> <Role type="A" maxVars="1" order="true" minVars="1" name="VAR">Response variable</Role> </Roles> </DataSource> </DataSources> <Options> <Option name="values" inputType="distinct" source="VAR" max="15">Age of interest:</Option> </Options>
Attribute
|
Description
|
---|---|
height |
specifies the height
of the control. This value can be in em or px. If a height is not
specified, SAS Studio sizes the control based on a reasonable default.
|
required |
specifies whether any
input text is required. Valid values are
true and false .
The default value is false .
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
defaultValue
attribute.
Any default values that you specify are selected at run time. If you
need to specify multiple default values, use a comma-separated list
of values for the defaultValue
attribute.
<Options> <Option name="ANOTHERLIST" inputType="dualselector" defaultValue="anothertest2, anothertest3">Test choices:</Option> <Option inputType="string" name="anothertest1">Another 1</Option> <Option inputType="string" name="anothertest2">Another 2</Option> <Option inputType="string" name="anothertest3">Another 3</Option> <Option inputType="string" name="anothertest4">Another 4</Option> <Option inputType="string" name="anothertest5">Another 5</Option> <Option inputType="string" name="anothertest6">Another 6</Option> </Options> <UI> <OptionChoice option="ANOTHERLIST"> <OptionItem option="anothertest1"/> <OptionItem option="anothertest2"/> <OptionItem option="anothertest3"/> <OptionItem option="anothertest4"/> <OptionItem option="anothertest5"/> <OptionItem option="anothertest6"/> </OptionChoice>
defaultValue
attribute
specifies to use the values for anothertest2 and anothertest3 as the
default values for this option. As a result, Another 2 and Another
3 are automatically selected for the Test
choices option.
Attribute
|
Description
|
---|---|
required |
specifies whether any
input text is required. Valid values are
true and false .
The default is false.
|
missingMessage |
specifies the tooltip
text that appears when the text box is empty but input text is required.
No message is displayed by default.
|
promptMessage |
specifies the tooltip
text that appears when the text box is empty and the user has selected
the text box.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
<Option name="textEXAMPLE" defaultValue="Text goes here" inputType="inputtext" indent="1" required="true" promptMessage="Enter some text." missingMessage="Missing text.">Input text:</Option>
modelbuilder
input
type has these attributes:
Attribute
|
Description
|
---|---|
required |
specifies whether any
input text is required. Valid values are
true and false .
The default is false.
|
roleContinuous |
specifies the role that
contains the continuous variables. The default value is null.
|
roleClassification |
specifies the role that
contains the classification variables. The default value is null.
|
excludeTools |
specifies the effect
and model buttons to exclude from the user interface. Valid values
are
ADD , CROSS , NEST , TWOFACT , THREEFACT , FULLFACT , NFACTORIAL , POLYEFFECT , POLYMODEL ,
and NFACTPOLY . Separate multiple values with
spaces or commas.
|
width |
specifies the width
of the control. The width value can be specified in percent, em, or
px. By default, the control is automatically sized based on the available
width and content.
|
roleContinuous
or roleClassification
)
is required. If both attributes are set to null, no variables are
available to create the model.
modelbuilder
input type from
the Generalized Linear Model task: <Option excludeTools="THREEFACT,NFACTPOLY" inputType="modelbuilder" name="modelbuilder" roleClassification="classVariables" roleContinuous="continuousVariables" width="100%">Model</Option>
Attribute
|
Description
|
---|---|
required |
specifies whether a
value is required. Valid values are
true and false .
The default value is false.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
reorderable |
specifies whether the
user can reorder the values in the list. Valid values are
true and false .
The default value is false .
|
<Options> <Option name="labelMULTIENTRY" inputType="string">An example of a multiple entry. This control allows the user to add their own values to create a list.</option> <Option name="multientryEXAMPLE" inputType="multientry">Multiple entry:</Option> </Options> <UI> ... <OptionItem option="labelMULTIENTRY" /> <OptionChoice option="multientryEXAMPLE"> <OptionItem option="value1" /> <OptionItem option="value2" /> <OptionItem option="value3" /> <OptionChoice> ...
reorderable
attribute
to true
, as shown in this example.<Options> <Option name="labelMULTIENTRY" inputType="string">An example of a multiple entry. This control allows the user to add their own values to create a list.</Option> <Option name="multientryEXAMPLE" inputType="multientry" reorderable="true"> Multiple entry:</Option> </Options> <UI> ... <OptionItem option="labelMULTIENTRY" /> <OptionChoice option="multientryEXAMPLE"> <OptionItem option="value1" /> <OptionItem option="value2" /> <OptionItem option="value3" /> <OptionChoice> ...
Attribute
|
Description
|
---|---|
decimalPlaces |
specifies the number
of decimal places to display. Valid values include a single value
or a range. To create a field that allows 0 to 3 decimal places, specify
decimalPlaces=”0,3” .
The maximum number of decimal places is 15.
|
invalidMessage |
specifies the tooltip
text that appears when the content is invalid.
|
maxValue |
specifies the maximum
value that is allowed. If the user tries to exceed this value, a message
appears. The default value is 9000000000000.
|
minValue |
specifies the minimum
value that is allowed. If the user specifies a value that is below
the minimum value, a message appears.
|
missingMessage |
specifies the tooltip
text that appears when the text box is empty, but a value is required.
|
promptMessage |
specifies the tooltip
text that appears when the text box is empty, and the field has focus.
|
rangeMessage |
specifies the tooltip
text that appears when the value in the text box is outside the specified
range.
|
required |
specifies whether a
value is required. Valid values are
true and false .
The default value is false.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
<Option name="labelNUMBERTEXT" inputType="string">An example of a number text. The minimum value is set to 0 and the maximum value is set to 100. <Option name="numberTextEXAMPLE" defaultValue="1" inputType="numbertext" minValue="0" maxValue="100" promptMessage="Enter a number between 0 and 100." invalidMessage="This number is out of range. Enter a number between 0 and 100."> Number text:</Option>
Attribute
|
Description
|
---|---|
decimalPlaces |
specifies the number
of decimal places to display. Valid values include a single value
or a range. To create a field that allows 0 to 3 decimal places, specify
decimalPlaces=”0,3” .
|
increment |
specifies the number
of values that the option increases or decreases when a user clicks
the up or down arrow. The default value is
1 .
|
maxValue |
specifies the maximum
value that is allowed. If the user tries to exceed this value, a message
appears. The default value is
9000000000000 .
|
minValue |
specifies the minimum
value that is allowed. If the user specifies a value that is below
the minimum value, a message appears.
|
required |
specifies whether a
value is required. Valid values are
true and false .
The default value is false .
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
<Option name="labelNumStepperEXAMPLE1" inputType="string"> An example of a basic numeric stepper.</Option> <Option name="basicStepperEXAMPLE" defaultValue="5" inputType="numstepper" indent="1">Basic numeric stepper:</Option>
<Option name="labelNumStepperEXAMPLE2" inputType="string"> An example of a numeric stepper with a minimum value of -10, a maximum value of 120, and an increment of 2.</Option> <Option name="advancedStepperEXAMPLE" defaultValue="80" inputType="numstepper" increment="2" minValue="-10" maxValue="120" decimalPlaces="0,2" width="8em" indent="1">Advanced numeric stepper:</Option>
outputdata
input
type creates a text box where the user can specify the name of the
output data set that is created by a task.
Attribute
|
Description
|
---|---|
required |
specifies whether a
name is required. The default value for this attribute is
false , which means that no name is required.
|
width |
specifies the width
of the control. The width can be specified in (percent) %, em, or
px. By default, SAS Studio determines the size of the control based
on the available width and content.
|
defaultValue
attribute.
defaultValue
attribute,
SAS Studio checks to see whether this name is unique when you open
the task. If the name is unique, the outputdata control in the task
uses the default name specified. If the name is not unique, a suffix
(starting with 0001) is added to the default name.
defaultValue
attribute is Outputds. If
no existing data sets use this name, Outputds appears as the name
in the outputdata control. If an Outputds data set already exists,
SAS Studio uses the suffix to create a unique name, such as Outputds0001.
Using this technique prevents SAS Studio from overwriting an existing
data set.
<Option defaultValue="Outputds" indent="1" inputType="outputdata" name="outputDSName" required="true">Data set name:</Option>
Attribute
|
Description
|
---|---|
variable |
specifies a variable
that contains the name of the currently selected radio button.
|
<Options> <Option name="labelRADIO" inputType="string">An example of radio buttons. One radio button can be selected at a time.</Option> <Option name="radioButton1" variable="radioEXAMPLE" defaultValue="1" inputType="radio">Radio button 1</Option> <Option name="radioButton2" variable="radioEXAMPLE" inputType="radio">Radio button 2</Option> <Option name="radioButton3" variable="radioEXAMPLE" inputType="radio">Radio button 3</Option> ... </Options>
Attribute
|
Description
|
---|---|
multiple |
specifies whether users
can select one or multiple items from the list. Valid values are
true and false .
The default value is true .
|
required |
specifies whether the
user must select a value from the list. Valid values are
true and false .
The default value is false .
|
sourceLink |
specifies that the data
for this control should come from another option. For more information
about this attribute, see
Populating the Values for a Select Control from a Source Control.
|
width |
specifies the width
of the control in percent (%), em, or px.
|
height |
specifies the height
of the control in em or px.
|
<Option name="labelSELECT" inputType="string">An example of a select. This example is set up for multiple selection.</Option> <Option name="selectEXAMPLE" inputType="select" multiple="true">Select:</Option> <UI> ... <OptionItem option="labelSELECT" /> <OptionChoice option="selectEXAMPLE"> <OptionItem option="value1"/> <OptionItem option="value2"/> <OptionItem option="value3"/> </OptionChoice>
defaultValue
attribute
specifies the item or items that should be selected by default. Multiple
items are in a comma-separated list. In this example, item1 (Biology)
and item2 (Chemistry) are selected by default.<Option name="selectExample" inputType="select" multiple="true" defaultValue="item1, item2">Subjects of interest</Option> <Option name="item1" inputType="string">Biology</Option> <Option name="item2" inputType="string">Chemistry</Option> <Option name="item3" inputType="string">Physics</Option>
Attribute
|
Description
|
---|---|
discreteValues |
specifies the number
of discrete values in the slider. For example, if
discreteValues=”3” ,
the slider has three values: a minimum value, a maximum value, and
a value in the middle.
|
maxValue |
specifies the maximum
value for this option.
|
minValue |
specifies the minimum
value for this option.
|
showButtons |
specifies whether to
show the increase and decrease buttons for the slide. Valid values
are
true and false .
The default value is true .
|
<Option name="labelSliderEXAMPLE1" inputType="string"> An example of a slide with buttons.</Option> <Option name="labelSliderEXAMPLE1" defaultValue="80.00" inputType="slider" discreteValues="14" minValue="-10" maxValue="120">Slider with buttons</Option>
<Option name="labelSliderEXAMPLE2" inputType="string">An example of a slider without buttons.</Option> <Option name="labelSliderEXAMPLE2" defaultValue="80.00" inputType="slider" discreteValues="14" minValue="-10" maxValue="120" showButtons="false">Slider without buttons</Option>
string
input
type can be used to display informational text to the user, to define
strings for the OptionChoice
tags, and to
define string values that are used by the Velocity code.
Attribute
|
Description
|
---|---|
returnValue |
is the string that is
returned in the control’s Velocity variable (instead of the
control’s name). This attribute applies only when the string
is used in an
OptionChoice tag.
|
<Option name="labelSliderEXAMPLE1" inputType="string"> An example of a slider with buttons.</Option> <Option name="labelSliderEXAMPLE1" defaultValue="80.00" inputType="slider" discreteValues="14" minValue="-10" maxValue="120">Slider with buttons</Option>
textbox
input
type enables the user to enter multiple lines of text. This input
type has these attributes:
Attribute
|
Description
|
---|---|
required |
specifies whether any
input text is required. Valid values are
true and false .
The default is false.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
height |
specifies the height
of the control. This value can be in em or px. By default, SAS Studio
sizes the control based on the available height and content.
|
defaultValue
attribute
with this input type, you can specify the initial string to display
in the text box. In this example, the text ’Enter
text here’
appears in the text box by default.
Note the use of single quotation marks around the text. This example
shows how you would include single quotation marks in your default
text. These quotation marks are not required.<Option name="textSimple" required="true" inputType="textbox" defaultValue="'Enter text here'">Text Box</Option>
Attribute
|
Description
|
---|---|
required |
specifies whether any
input text is required. Valid values are
true and false .
The default value is false .
|
invalidMessage |
specifies the tooltip
text to display when the content in the text box is invalid. By default,
no message is displayed.
|
missingMessage |
specifies the tooltip
text that appears when the text box is empty but text is required.
By default, no message is displayed.
|
promptMessage |
specifies the tooltip
text that appears when the text box is empty and the text box is selected.
By default, no message is displayed.
|
regExp |
specifies the regular
expression pattern to use for validation. This syntax comes directly
from JavaScript Regular Expressions.
|
width |
specifies the width
of the control. This value can be in percent (%), em, or px. By default,
SAS Studio sizes the control based on the available width and content.
|
<Option name="labelVALIDATIONTEXT" inputType="string">An example of a validation text. A regular expression of 5 characters has been applied.</Option> <Option name="validationTextExample" defaultValue="99999" inputType="validationtext" promptMsg="Enter a string 5 characters long." invalidMsg="More than 5 characters have been entered." regExp="\d{5}">Validation text: </Option>
combobox
and select
)
that enable users to select from a list of choices, the default behavior
is to return the name of the selected item in the list. However, because
the name
attribute must be unique for every
option, this default behavior could be limiting in some scenarios.
returnValue
attribute
on an Option
element, the string that is
specified for the returnValue
attribute is
returned instead of the name.
returnValue
attribute,
the Velocity variable returns carrots, peas, or corn.<Options> <Option name="RETURNVALUETAB" inputType="string">RETURN VALUE</Option> <Option name="labelReturnValue" inputType="string">This tab shows an example of the option's returnValue attribute. This attribute can be used in the OptionChoice controls to customize Velocity return values.</Option> <Option name="vegetables" inputType="select" multiple="true">Select the vegetables</Option> <Option name="carrots" returnValue="1" inputType="string">Carrots</Option> <Option name="peas" returnValue="2" inputType="string">Peas</Option> <Option name="corn" returnValue="3" inputType="string">Corn</Option> </Options> <UI> <Container option="RETURNVALUETAB"> <OptionItem option="labelReturnValue"/> <OptionChoice option="vegetables"> <OptionItem option="carrots"/> <OptionItem option="peas"/> <OptionItem option="corn"/> </OptionChoice> ... </Container> </UI>
OptionChoice
tag
are ignored.
sourceLink
attribute
and use the name of the source control.
<Option name="DATALINKINGTAB" inputType="string">DATA LINKING</Option> <Option name="DATALINKINGTEXT" inputType="string">This tab shows examples of data linking. Data linking allows controls to be populated based on data from another control</Option> <Option name="ROLELINKING" inputType="string">LINKING TO ROLES</Option> <Option name="selectRoles" inputType="select" multiple="true" sourceLink="dataVariables">This select is populated from the Variables selected from the Data tab.</Option> <Option name="MEBLINKING" inputType="string">LINKING TO MODEL EFFECTS BUILDER</Option> <Option name="selectMEB" inputType="select" multiple="true" sourceLink="modelBuilder">This select is populated from the output of the Model Effects Builder.</Option> ... <UI> <Container option="DATALINKINGTAB"> <OptionItem option="DATALINKINGTEXT"/> <Group option="ROLELINKING" open="true"> <OptionChoice option="selectRoles"/> </Group> <Group option="MEBLINKING" open="true"> <OptionChoice option="selectMEB"/> </Group> </Container> ... </UI>
name
attribute).
In the select control, the sourceLink
attribute
links to NUMVAR.<DataSources> <DataSource name="PRIMARYDATA"> <Roles> <Role type="N" maxVars="0" order="true" minVars="0" name="NUMVAR" exclude="VAR">Numeric Variable</Role> </Roles> </DataSource> </DatatSources> <Options> <Option name="roleList" inputType="select" sourceLink="NUMVAR"/>
modelbuilder
input type, the
values in the select control are the list of effects in the model
effects builder.
sourceType
can be used to set a filter
on the data that is sent to the select control. Currently, the only
defined filter is ‘filterClassification’. When this
filter is specified, only classification effects appear in the select
control.
sourceLink
attribute
links to MEB, and the sourceType
attribute
specifies the ‘filterClassification’ filter. As a result,
only classification effects appear in the source control.<Options> <Option name="meb" inputType="modelbuilder" roleContinuous="CONTVARS" roleClassification="CLASSVARS"/> <Option name="mebList" inputType="select" sourceLink="MEB" sourceType="filterClassification"/> </Options>
<Option inputType="string" name="modelGroup">MODEL EFFECTS</Option> <Option inputType="string" name="modelTab">MODEL</Option> 1<Option inputType="modelbuilder" name="modelBuilder" excludeTools="POLYEFFECT,TWOFACT,THREEFACT,NFACTPOLY" roleClassification="classVariable" roleContinuous="continuousVariables" width="100%">Model</Option> ... <Option inputType="string" name="multCompareGroup">Multiple Comparisons</Option> 2<Option indent="1" inputType="select" multiple="true" name="multCompareList" sourceLink="modelBuilder" sourceType="filterClassification"> Select effects to test</Option>
1 | Creates the model builder on the Models tab. Classification variables and continuous variables can be used to create the model effects. |
2 | Creates
the Select effects to test option. The sourceLink attribute
specifies that the initial list of values for this option is the list
of model effects in the model builder. The sourceType attribute
filters the list generated by the sourceLink attribute.
The filterClassification filter specifies
that only effects that include the classification variable should
be available in the Select effects to test option.
In the Perform
multiple comparisons option, the initial list of model
effects includes region, line, product, region(line), line(product),
and cost. However, cost is a continuous variable. When this list is
filtered, only the model effects that involve classification variables
(region, line, and product) are listed as values for the Select
effects to test option.
|