Skip to main content

Script API accepted values

info

This content is intended for advanced Studio users.

This page lists all accepted enumerated values for Script API method parameters.

Event types​

Used as the eventType parameter in addListener and removeListener.

ValueDescription
CHANGEFired whenever the value of the field changes. The most commonly used event type.
CLICKFired every time a button is clicked.
TERMINOLOGY_CHANGEFired when the terminology URL or parameters change.
EVENT_IS_HIDDENFired every time a field becomes hidden or visible.
EVENT_ANNOTATION_VALUEFired every time the user adds an annotation to an element.
EVENT_IS_READ_ONLYFired every time a field becomes read-only or editable.
EVENT_MAX_UPDATEDFired every time the maximum multiplicity changes.
EVENT_MIN_UPDATEDFired every time the minimum multiplicity changes.
EVENT_CHILDREN_UPDATEDFired on a container every time its children are updated.
INPUT_ITEMS_UPDATEDFired every time the input items of a field are updated.
DATASOURCE_CHANGEFired every time the data source of a field or list changes.
WIDGET_CONFIG_CHANGEFired when the configuration of a widget changes.
WIDGET_OUTPUT_EVENTFired every time a widget sends an output event.
WIDGET_INPUT_ACTIONFired every time a widget receives an input action.
CLEAR_CANVAS_MARKUPFired every time a Generic Canvas field is cleared.
SEARCH_INPUT_CHANGESFired every time the search input of a coded text field changes.
COMPOSITION_SAVEDFired when the composition is saved.
EVENT_IS_COLLAPSEDFired every time a container is expanded or collapsed.
DEFAULT_VALUE_CHANGEFired when the default value of a field changes.
LABEL_CHANGEFired every time the label of a field changes.
RESOURCE_RENDEREDFired when the image resource of a Generic Image or Canvas is rendered.
MODEL_VALIDATION_CHANGEFired every time the validation state of a model changes.

Property names​

Used as the prop parameter in setFieldValue and ScriptApiClearOptions.

ValueApplicable field types
valueAll
codeDV_CODED_TEXT, GENERIC_CODED_TEXT, DV_ORDINAL, GENERIC_ORDINAL, DV_SCALE
magnitudeDV_QUANTITY, GENERIC_QUANTITY
unitDV_QUANTITY, GENERIC_QUANTITY
denominatorDV_PROPORTION, GENERIC_PROPORTION_FIELD
numeratorDV_PROPORTION, GENERIC_PROPORTION_FIELD
labelDV_CODED_TEXT, GENERIC_CODED_TEXT, DV_ORDINAL, GENERIC_ORDINAL, DV_SCALE
ordinalDV_ORDINAL, GENERIC_ORDINAL
scaleDV_SCALE
otherValueDV_CODED_TEXT, GENERIC_CODED_TEXT
otherDV_CODED_TEXT, GENERIC_CODED_TEXT
idDV_IDENTIFIER
typeDV_IDENTIFIER
issuerDV_IDENTIFIER
assignerDV_IDENTIFIER
yearDV_DURATION
monthDV_DURATION
weekDV_DURATION
dayDV_DURATION
hourDV_DURATION
minuteDV_DURATION
secondDV_DURATION

Container button positions​

ValueDescription
topPositions the button at the top of the container.
bottomPositions the button at the bottom of the container.

Variable types​

ValueDescription
numberThe variable is of type number.
stringThe variable is of type string.
arrayThe variable is of type array.
objectThe variable is of type object.
booleanThe variable is of type boolean.

Variable sources​

ValueDescription
STATICThe variable value is static.
EXTERNALLY_PROVIDEDThe variable value is provided by the embedding application.
PREDEFINEDThe variable value is predefined by the system.
APIThe variable value comes from an API call.
AQLThe variable value comes from an AQL query.

Variable creation types​

ValueDescription
manuallyThe variable was created manually.
automaticThe variable was created automatically.

Frequently asked questions (FAQs)​

Where do I use event types?

Event types are used as the eventType parameter in addListener and removeListener. They specify which field-level event the listener should respond to.

Where do I use property names?

Property names are used as the prop parameter in setFieldValue and in ScriptApiClearOptions. They specify which property of a field to read or modify.