Hoppa till huvudinnehållet

How to interact with JavaScript variables on the site? Can you assign a global variable a value so that it can be used in other modules? I am using webappbuilder and have a custom chart in another pane - would like for the workflow to feed it results.

Kommentarer

5 kommentarer

  • Ken Lyon

    Is the custom chart in a widget that can receive data from others? If so, you could use the Publish Widget Data activity.

    0
  • Noah Taylor

    It's actually just custom javascript from ChartJS in their GoldenLayout dashboard. But maybe I can tunnel the data into the About widget that I am using to build it in?

    0
  • Ken Lyon

    That sounds like it could work. I think web appbuilder, this publishing approach seems to be the preferred way to communicate between things.

    0
  • Noah Taylor

    Do you have any examples of using the Publish Widget Data? Looking at the docs it isn't clear how I grab the output. The input side seems pretty clear.

     

    0
  • Ken Lyon

    I have only used it to send data to one of Esri's widgets. However, their docs here might help:

     

    https://developers.arcgis.com/web-appbuilder/guide/communication-between-widgets.htm

    0

Du måste logga in om du vill lämna en kommentar.