# Can i update many times in one event via signals?

**URL:** <https://discuss.elastic.co/t/can-i-update-many-times-in-one-event-via-signals/162096>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [December 26, 2018, 5:44am UTC](https://discuss.elastic.co/t/can-i-update-many-times-in-one-event-via-signals/162096 "2018-12-26T05:44:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Post date:** [December 26, 2018, 5:44am UTC](https://discuss.elastic.co/t/can-i-update-many-times-in-one-event-via-signals/162096/1 "2018-12-26T05:44:09Z")

</div>

i want to update multiply in one action

for example, i expected updated 2 times when double click 1 time.

```json
 {
      "name": "CallerQuery", "value": "",
      "on": [
        {
          "events": "@callerFilterButton:click!",
          "update": "datum.caller.key"
        },
        {
          "events": "dblclick",
          "update": "'1'"
        },
        {
          "events": "dblclick",
          "update": "'2'"
        }
      ],
      "bind": {
        "input": "text",
        "placeholder": "search caller",
        "autocomplete": "off"
      }
    }

```

there is 3 events.  
first is 'click' about @callerFilterButton label  
second is 'dblclick' and value will be changed to '1'.  
third is 'dblclick' and value will be changed from 1 to 2.

what i expected that CallerQuery's value must to change to 2 after changed 1.

but actually, second event is ignored.  
when i double clicked, value had changed to 2 directly.

can i update value twice in one event?  
it must to be changed 1 first, and then changed 2 second.

and i tried following setting too, but this is invalid conf.

```json
 {
      "name": "CallerQuery", "value": "",
      "on": [
        {
          "events": "@callerFilterButton:click!",
          "update": "datum.caller.key"
        },
        {
          "events": "dblclick",
          // this is invalid 
          "update": ["'1'", "'2'"]
        }
      ],
      "bind": {
        "input": "text",
        "placeholder": "search caller",
        "autocomplete": "off"
      }
    }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2019, 5:44am UTC](https://discuss.elastic.co/t/can-i-update-many-times-in-one-event-via-signals/162096/2 "2019-01-23T05:44:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
