disable pop-up for the query result layer ?

4520
20
Jump to solution
05-15-2016 03:15 PM
IbrahimMohammed_Ahmed
New Contributor III

can i manipulate the source code for the query widget to disable info-window for the results layer the query creates ?

0 Kudos
20 Replies
JasonStanton__GISP
Occasional Contributor

So this is a Web Map issue not a Portal issue... and the only way to prevent this is to disable all configured popups in the Web Map?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jason,

  Does the empty popup not disappear as a few seconds of displaying "Searching" then "No information available"? 

0 Kudos
JasonStanton__GISP
Occasional Contributor

It does not dissapear, nor does it display "Searching".  Attached is a screen shot.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Does it only do that if you open the query widget and do a query first?

0 Kudos
JasonStanton__GISP
Occasional Contributor

Yes.  I open the widget, run the query, then select a record and the blank info window appears.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

So my question really was does it not show that blank popup if you do not open the Query widget

0 Kudos
JasonStanton__GISP
Occasional Contributor

Sorry, it does not show a blank popup if I do not open the query widget

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jason,

  OK. Now I understand. You are getting the empty popup when you click on a query result in the widget. So to disable that you have to comment out this line in the SingleQueryResult.js _onResultsTableClick function:

this.map.infoWindow.show(centerPoint);
JasonStanton__GISP
Occasional Contributor

First - my apologies for not making my issue clear in the beginning

Second - thank you for the 8,761st time... I very much appreciate your help!

One point of note for anyone else that comes across this post - the line of code to comment out is in the SingleQueryResult.js file not Widget.js.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jason,

   Correction made to my previous post.

0 Kudos