# Kibana Iframe communicator: What is APP-STATE?

**URL:** <https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000>\
**Category:** Kibana\
**Created:** [July 21, 2018, 3:37pm UTC](https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000 "2018-07-21T15:37:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amey\_G](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Amey\_G](https://discuss.elastic.co/u/Amey_G)\
**Post date:** [July 21, 2018, 3:37pm UTC](https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000/1 "2018-07-21T15:37:05Z")

</div>

> [@Kibana Iframe Communicator](https://discuss.elastic.co/t/kibana-iframe-communicator/83037):
>
> Hello, I'm start on kibana and javascript and i search how to work the plugin [Kibana-Iframe-Communicator](https://github.com/ytzlax/kibana-iframe-communicator-plugin) . I try to send to my dashboard different filters using windows.postmessage but I do not understand how to format my request Is there anyone who already use this plugin? thank you in advance

I am trying to use Kibana Iframce request and I saw the post which says:

myIframe.contentWindow.postMessage('searchRequest###' + this.iframeFinalUrl, '\*'); this.iframeFinalUrl is your kibana URI containing the complete dashboard data such as: http://{KIBANA-HOST}/app/kibana#/dashboard/{OPTIONAL-DASHBOARD-NAME}?embed&\_g={GLOBAL-STATE-DATA}&\_a={APP-STATE-DATA}

But what exactly needs to be sent in the GLOBAL-STATE-DATA and APP-STATE-DATA ?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [July 24, 2018, 11:36pm UTC](https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000/2 "2018-07-24T23:36:36Z")

</div>

You can download and run the open source version of Kibana to see what gets set in app and global state, but it's stuff relating to the state of the current page, such as the index pattern, vis type, etc.

Here's an example:

[http://localhost:5601/grc/app/kibana#/dashboard?\_g=()&\_a=(description:'',filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),panels:!(](http://localhost:5601/grc/app/kibana#/dashboard?_g=()&_a=(description:'',filters:!(),fullScreenMode:!f,options:(darkTheme:!f,hidePanelTitles:!f,useMargins:!t),panels:!()),query:(language:kuery,query:''),timeRestore:!f,title:'New%20Dashboard',viewMode:edit)

---

<div class="post-metadata">

**Author:** ![Amey\_G](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Amey\_G](https://discuss.elastic.co/u/Amey_G)\
**Post date:** [July 29, 2018, 2:15am UTC](https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000/3 "2018-07-29T02:15:39Z")

</div>

Thanks a lot for the example. I will try that with iframe communicator.

---

<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:** [August 26, 2018, 2:15am UTC](https://discuss.elastic.co/t/kibana-iframe-communicator-what-is-app-state/141000/4 "2018-08-26T02:15:42Z")

</div>

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