RemoveFlexTag
- Last UpdatedApr 24, 2025
- 2 minute read
Removes all flexTag records that match.
Input Parameters
-
paramList (required) - a string with parameters to match.
-
At least one parameter is required - this prevents all of the tags from being accidentally deleted.
-
Entries are separated by asterisks (*).
-
Within each item, the field name and value are separated by pipes (|).
-
The paramList is of the form: fieldName1|value1*fieldName2|value2.
-
In the paramList , the items are AND'ed together, so that all fields must match.
-
There is one exception to this rule - if DBnPnt items are specified, they are OR'ed together.
-
DBnPnt values are of the form "point/database". This feature supports Tag Grouping.
Results
The first result set contains the matching tags that were successfully deleted. The second result set contains the matching tags that did not get deleted (including those not within your Area of Responsibility (AOR)).
Examples
In each case, these are the flexTags defined before the RemoveFlexTag BLT (Business Logic Tier) is called (we assume they are reset to these values):
Initial
|
Database |
Point |
tagType |
workOrder |
Description |
|---|---|---|---|---|
|
analog |
ana1 |
InfoLow |
|
|
|
analog |
ana2 |
WarningHigh |
|
|
|
status |
sta1 |
InhCrit |
|
|
|
status |
sta2 |
InfoLow |
|
|
|
multistate |
mul1 |
InhCrit |
|
|
|
multistate |
mul1 |
InfoLow |
|
|
|
multistate |
mul2 |
WarningHigh |
|
|
Records after RemoveFlexTag is called with paramList = database|analog:
|
Database |
Point |
tagType |
workOrder |
Description |
|---|---|---|---|---|
|
status |
sta1 |
InhCrit |
|
|
|
status |
sta2 |
InfoLow |
|
|
|
multistate |
mul1 |
InhCrit |
|
|
|
multistate |
mul1 |
InfoLow |
|
|
|
multistate |
mul2 |
WarningHigh |
|
|
Records after RemoveFlexTag is called with paramList = database|analog *curTagType|InfoLow:
|
Database |
Point |
tagType |
workOrder |
Description |
|---|---|---|---|---|
|
analog |
ana2 |
WarningHigh |
|
|
|
status |
sta1 |
InhCrit |
|
|
|
status |
sta2 |
InfoLow |
|
|
|
multistate |
mul1 |
InhCrit |
|
|
|
multistate |
mul1 |
InfoLow |
|
|
|
multistate |
mul2 |
WarningHigh |
|
|
Records after RemoveFlexTag is called with paramList = DBnPnt|ana1/analog*DBnPnt|sta2/status* curTagType|InfoLow:
|
Database |
Point |
tagType |
workOrder |
Description |
|---|---|---|---|---|
|
analog |
ana2 |
WarningHigh |
|
|
|
status |
sta1 |
InhCrit |
|
|
|
multistate |
mul1 |
InhCrit |
|
|
|
multistate |
mul1 |
InfoLow |
|
|
|
multistate |
mul2 |
WarningHigh |
|
|