Select to view content in your preferred language

Replace info popup in sfv with glowing outline

807
3
05-27-2010 08:22 AM
CoryHines
Deactivated User
This might be hard to explain, but I essentially want to get rid of or replace the way the info pop up appears in the sfv and instead simply show an outline of the feature as a highlighter when you roll over the record in the search widget.  This would be an additional graphic on top of the one that is already showing the selected record.  This is essential when more than one feature is selected.

I think that I need to add some code to the existing mouseOverRow function in the RecordData.mxml file and remove the InfoPopup.mxml file?  I believe I would still need to somehow pass the graphic from the search widget that the mouse is currently over to that function, but I'm not sure if that's the correct logic?

Any help is appreciated.  So far I've just managed to get rid of the info canvas and have the "red glow" pulsing over the record.

Thanks,
Cory
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
CoryHines
Deactivated User
Hi Robert,

Thanks for pointing to this thread.  It's hard to tell when you read forum titles to know if it's the similar to what you're trying to do.

At first glance I can see that I'm in over my head with what Tracy has accomplished.  I'm going to take a look at the resource from the 2009 dev summit and see if I can glean anything from that code to put in my RecordData.mxml.

Thanks for your input.
Cory
0 Kudos
SandeepTalasila
Occasional Contributor
Hi,
I was trying to include text in the info popup window for the attributes with url's in the identify window saying that 'click on the link'. I was able to do that, but the text is showing up on the layers without any url. I have added few lines in the code, please let me know any ideas on how to resolve this.
<mx:Canvas id="infoCanvas" styleName="InfoCanvas" x="80" y="10" width="200" minHeight="60" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  <mx:VBox width="100%" height="100%" verticalGap="0" verticalAlign="middle" horizontalAlign="left" paddingLeft="4" paddingRight="4" paddingTop="4" paddingBottom="4">
   <mx:Text id="infoTitle" text="Title" width="100%" styleName="InfoTitle" visible="false"/>
   <mx:Text id="infoContent" text="Content" width="100%" styleName="InfoText" visible="false"/>
   <mx:Image id="infoImage" visible="false" includeInLayout="false" height="0"/>
  <mx:HBox width="100%" height="100%" verticalAlign="bottom" horizontalAlign="right" >
   <mx:Text id="infolinkTitle" htmlText="Click on arrow for &lt;br/&gt; Project Participation Worksheets" styleName="InfoLinkTitle" visible="true" includeInLayout="true"/>
          <mx:Image id="infoLink" source="com/esri/solutions/flexviewer/assets/images/widget/w_link.png" click="showLink()" visible="false" includeInLayout="false" useHandCursor="true" buttonMode="true"/>
  </mx:HBox>
---
---
</mx:Canvas>


Thanks,
0 Kudos