Text node
Description
The Text node represents a section of text. It can contain accented characters, scientific symbols, and even emojis!
Usage
The Text node is an input, so it can be added to the segments of comparison nodes.
It can be:
-
added to these comparison nodes:
- Attribute search
- Contains word
- Equals
- Not Equals
- Starts with
-
compared against an Attribute node (of Text type)
Configuration
- Parameter - select a compatible parameter to use as a placeholder value (if any have been defined in the query).
-
Value - type in a number.
-
Add - add another Value field to the node. Select to remove.
Example
Find all Street Lights with a unit number beginning SL/002
In full detail:
Find items of the Street Lights design where their Unit Number attribute starts with SL/002
See JSON code
This code may reference designs, interfaces, attributes or items that don't exist in your Alloy database.
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designs_streetLights"
},
"children": [
{
"type": "StartsWith",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_streetLightingUnitsUnitNumber"
}
},
{
"type": "String",
"properties": {
"value": ["SL/002"]
}
}
]
}
]
}