Select to view content in your preferred language

How to Dynaically Fire a dojo Event?

928
2
Jump to solution
02-12-2019 07:09 AM
ShaningYu
Honored Contributor

In the code below, a dojo button is defined.

<div id="divAttributeQueryButton">  <table style="width: 100%;">	<tr>          <td style="text-align: center">	    <button data-dojo-type="dijit/form/Button" data-dojo-props="iconClass:'fa fa-search fa-fw',showLabel:true,disabled:true" data-dojo-attach-point="btnSearch" data-dojo-attach-event="click:onSearch">${i18n.Buttons.search}</button>          </td>	</tr>   </table></div>

Is it possible to dynamically fire its click event when clicking a point on the map (meanwhile popout the Identify box)? Thanks if you can provide the hint!

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Shaning,

  Use this.btnSearch.click();

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Shaning,

  Use this.btnSearch.click();

ShaningYu
Honored Contributor

Solved.  Thanks to Robert!!

0 Kudos