How to pass filters between widgets?

2158
3
Jump to solution
06-20-2016 08:51 AM
Alexwang
Occasional Contributor II

I am relatively new to the WAB development. I have two widgets in my application which need to communicate with each other. So if the the attribute queries change in one widget, i need to pass the filters to another widget and update the query results when a click event is trigger on the first widget. How to achieve it?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Alex,

  Sounds like you want to look into Widget Communication Communication between widgets—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers . Also in WAB 2.0 there is a sample of widget communication: client\stemapp\widgets\samplewidgets\WidgetCommunication

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Alex,

  Sounds like you want to look into Widget Communication Communication between widgets—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers . Also in WAB 2.0 there is a sample of widget communication: client\stemapp\widgets\samplewidgets\WidgetCommunication

0 Kudos
Alexwang
Occasional Contributor II

thank you!

0 Kudos
KisakyeM
New Contributor III

@Alexwang how did you access the click event of the filter widget?

0 Kudos