About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
You can set properties using the following syntax:
OBJECT.setPropertyValue(PROPERTY, VALUE)
or:
OBJECT.setKeyedPropertyValue(PROPERTY, KEY, VALUE)
You can retrieve the value of properties using the following syntax:
VARIABLE = OBJECT.getPropertyValue(PROPERTY)
or:
VARIABLE = OBJECT.getKeyedPropertyValue(PROPERTY, KEY)
where
is a node or output, OBJECT
is the name of the node property that your expression refers to, and PROPERTY
is the key
value for keyed properties. For example, the following syntax finds the Filter node and then sets
the default to include all fields and filter the KEY
field from downstream
data:Age
filternode = modeler.script.stream().findByType("filter", None) filternode.setPropertyValue("default_include", True) filternode.setKeyedPropertyValue("include", "Age", False)
All nodes used in SPSS Modeler can be located using the flow function
. At least one of findByType(TYPE, LABEL)
or
TYPE
must be specified.LABEL
Was the topic helpful?
0/1000