|  Developer
Updated on May 24, 2022

isDictionaryChanged

  • An event arises when the state of an element of a dictionary item is changed. The isDictionaryChanged comparison method can be bound to one of the following operations:
  • – arises when an element with the key specified in the key field is added;
  • – arises when an element with the key specified in the key field is updated;
  • – arises, when the key specified in the key field is removed from a dictionary item.
  • This feature is available since advanced_scenes/1.17.
Edit
Field Type Required Description
blockOptions.method.args.item item + The dictionary item id
blockOptions.method.args.key token + The dictionary element key
blockOptions.method.args.operation token + The dictionary operation. The possible operations: added – a new element is added to a dictionary; updated – an existing element is updated; removed – an element is removed from a dictionary.
Edit
				
					{
    "blockType": "when",
    "blockOptions": {
        "method": {
            "name": "isDictionaryChanged",
            "args": {
                "item": "item",
                "key": "key",
                "operation": "operation"
            }
        }
    },
    "fields": [
        {
            "name": "item",
            "type": "item",
            "value": "5e4a5fef7f0000707ff6e9bd"
        },
        {
            "name": "key",
            "type": "token",
            "value": "key_1"
        },
        {
            "name": "operation",
            "type": "token",
            "value": "added"
        }
    ]
}