# A little bit help with additional functionality

**URL:** <https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530>\
**Category:** Kibana\
**Created:** [October 2, 2015, 8:32am UTC](https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530 "2015-10-02T08:32:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvn](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pvn](https://discuss.elastic.co/u/pvn)\
**Post date:** [October 2, 2015, 8:32am UTC](https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530/1 "2015-10-02T08:32:34Z")

</div>

Hello!

First of all thanks for a great tool.

Because accuracy of milliseconds is not enought, I'm adding one more collumn for a nanoseconds.  
And now want to set up time interval from discover table.

I.e if we found error, then click on row, call context menu and mark it's time as the start/end of interval and so on. I've already done context menu, and trying to input this query(nanoTime:[1443188033134694000 TO \*] ) to the query input control.

my code:  
**doc\_table.js**

> ```
> $scope.$parent.updateSearchValue('nanoTime:[' + $itemScope.row._source.nanoTime + ' TO *]');
> 
> ```

and  
**discover.js**

> ```
> $scope.updateSearchValue = function (searchValue) {
> $scope.state.query.query_string.query = searchValue;
> $scope.fetch();
> };
> 
> ```

it's works fine, data in the table changes, querystring in browser also, but there is no data in the input control. I mean it doesnt changing

Could you help me, what shoud I do to solve it?

It i setup dirrect value to $scope.state.query then I see this error : ![](https://us1.discourse-cdn.com/elastic/original/2X/a/a91d820b4c44b52844ffd63c4466cd96f673683a.png)

If then I add and remove any letter in the input - all is ok.

thank you!

---

<div class="post-metadata">

**Author:** ![pvn](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pvn](https://discuss.elastic.co/u/pvn)\
**Post date:** [October 2, 2015, 10:14am UTC](https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530/2 "2015-10-02T10:14:37Z")

</div>

Done(as usuall, in 5min after question) 🙂

$scope.updateSearchValue = function (searchValue) {

```
  $scope.state.query.query_string.query = searchValue;
  discoverSearch.discoverSearchInput.value = searchValue;
  $scope.fetch();
};
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 3, 2015, 11:54pm UTC](https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530/3 "2015-10-03T23:54:32Z")

</div>

Very nice!

---

<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:** [July 6, 2017, 2:12pm UTC](https://discuss.elastic.co/t/a-little-bit-help-with-additional-functionality/31530/4 "2017-07-06T14:12:03Z")

</div>


