Select to view content in your preferred language

Search Widget FlexViewer 2.0

741
3
08-02-2010 07:43 AM
JoshuaKalov
Occasional Contributor
I have configured the xml file for the Search Widget with the FlexViewer 2.0.  I am asking it to return 4 fields, 1 being a "titlefield" and 1 being a "linkfield." 

When I use the application and do a search, "SHAPE_Length" and "SHAPE_Area" fields display even though I don't have them listed in the "fields" section of the xml file.  How do I get them to not display?  Is this a bug?

Another issue I am having is that the link is only showing in the info pop-up.  It odes not show in the "Results" section of the Search widget box.

Anyone know why this wouldn't be working right?

Thanks
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Joshua,

   The link in the search results for Flexviewer 2.0 does not exist anymore (don't raelly know why they omitted it). And the shape_area and shape_Length has been a bug/feature since SFV 1.0. In the SearchWidget.mxml line 415 replace the existing line with this to fix it.

if (fld.toUpperCase() != queryTitleField.toUpperCase() &&(fld.toUpperCase() != "SHAPE_LENGTH") && (fld.toUpperCase() != "SHAPE_AREA"))
0 Kudos
JoshuaKalov
Occasional Contributor
Joshua,

   The link in the search results for Flexviewer 2.0 does not exist anymore (don't raelly know why they omitted it). And the shape_area and shape_Length has been a bug/feature since SFV 1.0. In the SearchWidget.mxml line 415 replace the existing line with this to fix it.

if (fld.toUpperCase() != queryTitleField.toUpperCase() &&(fld.toUpperCase() != "SHAPE_LENGTH") && (fld.toUpperCase() != "SHAPE_AREA"))


Thanks Robert.  You are always great about responding with solutions.


The link in the search results for Flexviewer 2.0 does not exist anymore (don't raelly know why they omitted it).


To any ESRI folks that saw my other post about documentation, this is exactly the kind of thing I am talking about.  Is this a bug I should report?  Was this intentionally left out?

I guess that goes for the SHAPE_LENGTH/SHAPE_AREA bug too.  If that has been around since 1.0, has it just not been reported?  Is there a reason it has never been fixed? 

If ESRI utilized bug tracking/reporting systems like most web software dev. uses, it would be easier to know the answers to these things without having to guess.
0 Kudos
ashwiniwakchaure
New Contributor
I modified searchwidget_louisville.xml in the sample flex viewer 2.0, and put a layer from out service instead of Louisville layers, however the widget still shows the combobox and Louisville layers.. I don't know why? can you help please?

Thanks.
0 Kudos