How to trigger mouse click to show popuprenderer

742
2
07-21-2011 03:39 PM
TimLeigh
New Contributor II
This is a duplicate post of http://forums.arcgis.com/threads/35200-How-to-trigger-mouse-click-to-show-popuprenderer as it was suggested  I post it in this forum.

I'm using the SFV and I'd like to show a popup of feature info when a user clicks on the results in the search widget. The standard results only take the basic attributes (primary display field), so I'd like to trigger a mouse click on the map to show the full popuprenderer based on the layer configuration in the map.

I've tried the following code, but the event doesn't seem to fire, any other suggestions?

var mouseEvent:MouseEvent = new MouseEvent(MouseEvent.MOUSE_UP, true, false, screenPt.x, screenPt.y );
var mapEvent:MapMouseEvent = new MapMouseEvent(MapMouseEvent.MAP_MOUSE_CLICK, map, showHighlightPoint);
mapEvent.relatedObject = MouseEvent as InteractiveObject;
map.dispatchEvent(mapEvent);


Thanks

Tim
Tags (2)
0 Kudos
2 Replies
TylerWaring
Occasional Contributor II
Hi. Did you ever find a solution to this? I am trying to do something simelar to see if I can use something like this to popup and populate the editor.attributeInspector in the Editor Widget. I plan to use this to help validate attributes in the editor's attribute inspector. If the attributes do not pass the checks, I plan to just pop up the editor.attributeInspector again with a generated map click. Not sure if a generated map click event will do this though.
0 Kudos
RhettZufelt
MVP Frequent Contributor
This is a duplicate post of http://forums.arcgis.com/threads/35200-How-to-trigger-mouse-click-to-show-popuprenderer as it was suggested  I post it in this forum.

I'm using the SFV and I'd like to show a popup of feature info when a user clicks on the results in the search widget. The standard results only take the basic attributes (primary display field), so I'd like to trigger a mouse click on the map to show the full popuprenderer based on the layer configuration in the map.


Thanks

Tim


So, what are you after here?  Since the popup in the search widget supports ALL the fields/attributes reported by REST, not sure what you are trying to do.

R_
0 Kudos