I have added the code in the map click event, however it throws an error on focus widget function. It seems the map click event is fired again and hence the widget run command executes again. How to stop the widget command from running once the widget has run.
Basically i need the identify widget to run (automatically open) whenever the user click on the map.