Select to view content in your preferred language

Popup Window of Enhanced Search Widget

2126
8
06-22-2012 06:44 AM
by Anonymous User
Not applicable
Original User: 3alaeddine

Hi all,
I am using the enhanced search widget (http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e) in my application and at the same time the attachment relate info widget (http://www.arcgis.com/home/item.html?id=4ec33120c9ea4d019fddf722fc34ea3c).
My problem is that when I click on a selected feature I get the popup window shown in snapshot1 instead of the relate info widget shown in snapshot2. So I would like to know how I could change the code so that the search widget uses the relate info widget to show the information of my feature.
Thank you.
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   The two widgets are not designed to work together.
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Alaeddine,

   The two widgets are not designed to work together.


Hi rscheitlin,
Thank you very much for answering my question. I am wondering how I could change the code to disable the popup window displayed when I selected a found feature.
Thank you again.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   In the SearchWidget.mxml the showHighlight function is what displays the popup.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Alaeddine,

   In the SearchWidget.mxml the showHighlight function is what displays the popup.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

Hi rscheitlin,
Thank you so much for your quick answer. Your solution solved my problem when I select the feature from the list. When I click on the red square of a selected feature, I get the popup window. How could I disable this too?
Thank you again.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   Do you have a popup configured for that particular layer in your main config.xml?
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Alaeddine,

   Do you have a popup configured for that particular layer in your main config.xml?

Yes, I have one configured in my main config.xml. When I remove the configuration, I get one popup window for the red square(snapshot 1). And when I keep the popup configuration, I get two popup windows: one for the red square(snapshot 2) and another for my feature (snapshot 3). That's why I would like to disable the popup window for the red square.
Thank you so much for your help.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alaeddine,

   Search for and comment out this line then:

graphic.infoWindowRenderer = infoWindowRenderer;
0 Kudos
by Anonymous User
Not applicable
Original User: 3alaeddine

Alaeddine,

   Search for and comment out this line then:

graphic.infoWindowRenderer = infoWindowRenderer;


Thank you so much for your answer. It solved the issue of the popup window. I am wondering how I could put the result of my search in a combo box instead of a list.
Thank you again.
0 Kudos