Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

175485
776
04-30-2013 03:58 PM
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is a new thread to post questions and discuss the Enhanched Search Widget. The old thread was getting too long.
Tags (2)
776 Replies
RobertScheitlin__GISP
MVP Emeritus
Derek,

   That is covered in the documentation. It is called hyperlinkaliastext.
0 Kudos
Erickson_Contract_Surveying_
Deactivated User
Sorry I missed that.

Thanks.

Derek,

   That is covered in the documentation. It is called hyperlinkaliastext.
0 Kudos
JonathanRoss
Deactivated User
What a wonderful widget! Thanks so much for the continued support on it!

I couldn't find the answer to my question in the forum so I thought I'd post myself. My question is about the symbology of related features.  I'm doing a table search and trying to locate the related polygon feature in the map.  I can successfully search and using the show relates i can get the tabular information of the polygon layer and when I click the record in the table it zooms to the feature in tthe map no problem.  The issue is that the color of the selected feature is just a feint orange outline instead of this:

<simplefillsymbol color="0x00ffff" alpha="0.5">
      <outline color="0xff0000" alpha="0.8" width="2" />
</simplefillsymbol>

I've tried putting these tags right below the fields inside of the the relate tag but it doesn't seem to work. Is there a way to customize the symbology of the related feature?

<relate id="0" label="Parcel" icon="widgets/eSearch/assets/images/i_relate.png">
     <fields all="false">
      <field name="PID" alias="PID" gridfield="true"/>
     </fields>
     <zoomscale usegeometry="true" zoompercent="1.6" />
     <simplefillsymbol color="0x00ffff" alpha="0.5">
      <outline color="0xff0000" alpha="0.8" width="2" />
     </simplefillsymbol>
   
     <simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0x000000" alpha="1" width="1"/>
     </simplemarkersymbol>

    </relate>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jonathan,

   I do not have anything in place to symbolizing the related features, the symbology that you see is what is returned by the server and then a Glow is added to it when you choose a particular related feature in the datagrid. The glow color is controlled by this line in the eSearchWidget.xml

<subselection color="0xfbfe0a" linewidth="4" alpha="0.8" />
0 Kudos
JonathanRoss
Deactivated User
Jonathan,

   I do not have anything in place to symbolizing the related features, the symbology that you see is what is returned by the server and then a Glow is added to it when you choose a particular related feature in the datagrid. The glow color is controlled by this line in the eSearchWidget.xml

<subselection color="0xfbfe0a" linewidth="4" alpha="0.8" />


Hi Robert,
Thanks so much for getting back quickly.  I've tried inserting that line in a couple different places; at the end in the symbols group, inside the relate tags and also, and it seems from the documentation that the most logical place is right after the relateicon tag like this:
<relatetooltip>Show Relates</relatetooltip>
  <relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>
  <subselection color="0x339933" linewidth="10" alpha="0.8" />

...but can't get it to change.

I'm on API 3.3, would I need to upgrade my tools?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jonathan,

   The subselection was introduced until 3.5 version of the widget.
0 Kudos
JiehuaYi
Deactivated User
Hi Robert,
I have an issue related to eSearch working with the Print widget. I put the issue summary in http://esrica-ncr.maps.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e. Here is the details:

1. selecting polygons in the polygon operational layer from eSearch widget, the selected polygons are highlighted as red with transparency.
2. Then print the current map as PDF with the eSearch widget open. The selected polygons become solid red, and the boundary of the selected polygons is colored cyan with width at least 2.
3. If use the original ESRI Search widget to select, and then print the selected polygons with the Search widget open, then work fine: the selected polygons in the PDF file are red with transparency.

I made a sub package in ArcGIS Viewer for Flex, and attached here. It includes the simple polygon shapefile, config.xml and the eSearch widget only.

You can setup a new ArcGIS Viewer for Flex application, using the attached config.xml. It should have three buttons: Search widget, eSearch widget and Print widget.

the only operational layer in the config.xml is:
<url>http://localhost:6080/arcgis/rest/services/testPolygons/MapServer/0</url>


You have to change the following before running the demo:

1. publish the attached shapefile as a map service on localhost:6080, use the default name.
2. or you may want to publish the Export Web Map tool and use that service as the print service. That is what I did when testing.

The results are also attached.

If you need more info, please let me know. Thanks in advance.

JYi


Edit:
Thanks for quick response, Richard!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jiehua,

   This is a know issue with the print widgets when using FeatureLayers (like the eSearch uses). You can not compare the OTB search widgets printing with the eSearch as the OTB search widget does not use a Featurelayer for search selections it uses a graphicsLayer instead. Anyway this has been reported to the Flex Team for some time now and still no resolution.
0 Kudos
ShawnBowers
Regular Contributor
Hi Robert, thanks for providing this great widget. 

I have the widget configured and everything seems to be working except one feature that I see in your online sample.  How do you enable the ability to select multiple rows in the fixed data grid?  I'm using ArcGIS viewer 3.6 with your most recent widget.  I have a feature layer with a one to many relationship to a non-spatial table and what I'm trying to do is search for records in the table and then select/zoom all of the related features. 

Thanks for any help you can provide.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   So do you have the relates section of the configuration setup for that layer? Not a lot of info to go on here...
0 Kudos