Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

179961
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
DilsonKitoko
Emerging Contributor
Hi Robert,

Thanks for your prompt reply. Just one mor question...On graphical search is it possible to remove the buffer graphic, units and enable mult-part graphics Boxes?

I tried using:

        <enablebuffergraphicbutton>false</enablebuffergraphicbutton>
        <enablemultigraphicssearch>false</enablemultigraphicssearch>
        <enablegraphicsbuffering>false</enablegraphicsbuffering>
        <multipartgraphicsearch>false</multipartgraphicsearch>

But none of them works.

Thanks,


Hi Robert,

I forgot to mention that I'm currently working on flex 2.5. I thinks that's teh reason that the tags are not working,

Thanks,
0 Kudos
MarciaElam
Deactivated User
dwhthe3rd,

   Can you be more specific? Do you mean that are getting no symbology for the results or the subselectin color?


Meaning I get results, but the actual geometries do not highlight when you select the record in the results.  So, if the user searches and returns 100 well points among thousands of wells, the user can't tell graphically which wells are part of the search results.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Marcia,

   So the way the widget works is that once a search is completed th widget displays the results in the widget results view and when you click on one of those results it will zoom you to that result. If you hve set the layers symbology in the layer tag (as covered in the the extensive pdf documentation), then your symbology for the search results will show as what ever you configured (most of the time people set it to something different than the layers symbology that is already displaying in the map for that layer). If you have made the mistake of providing the wrong symbology type of that layers geometry type (i.e you are search a point layer and you have the layer symbology set to SimpleFillSymbol for a polygon) than it will not draw anything on the map. If you are using the fixed of floating datagrid with the widget than you will also get the option of using the datagrids subselection color (all of this is covered in the pdf and their are examples in the eSearchWidget.xml that is packaged with the widget download).
0 Kudos
GregWolowich1
Occasional Contributor
Greg,

   So are you saying the my old 2.4 version of the eSearch returns all the records and the 3.4 does not and both are hitting the same server and service?


Correct. In fact, i have both applications published on the same server, looking at the same data/services. I can test them side by side and get different results. 2.4 returns many, 3.4 returns only one. It seems to be respecting the "like" part of the sql statement as I do not have to enter the full ID. I tested it with a variety of layers and only ever get one result.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Greg,

  Well I have no explaination for that. I have never seen that issue and have never had anyone report it thoughout all the versions in between 2.4 and 3.6... If you service is public it would help me diagnose the issue.
0 Kudos
GregWolowich1
Occasional Contributor
Greg,

  Well I have no explaination for that. I have never seen that issue and have never had anyone report it thoughout all the versions in between 2.4 and 3.6... If you service is public it would help me diagnose the issue.


Ok, well, I'll keep pressing on. I just tested the ESRI search widget with the same services and same query and get many results.
Must be somewhere else in the xml that I've messed up.

Thanks,

Greg
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Greg,

  I can take a look at your xml if you want me to.
0 Kudos
JoshWhite
Honored Contributor
Robert,
I am using the Enhanced Search Widget primarily because I wanted to use the attachment feature of it.  It seems to be working okay but I wanted to ask a question.  Is there a way to control what shows in the thumbnail previews in the popups of the attachments.  Right now, what is happening is that you cannot make out what the picture will be until you click on it.  I hope the attached screenshot explains that better than my text.  This is supposed to be pictures of road surfaces, when you click on the picture the image opens up in the browser but some of these features will have upwards of 10 attachments.  I'm not sure with this sort of image if it will make much difference but it seemed interesting behavior.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Josh,

   For showing the attachments I am just using the standard esri popups attachment inspector features. The max image size for the thumbnail is 64 x 64 and the thumbnail images does not have smoothing set to one by default so the resizing of your images to 64 x 64 is likely the issue with them being blurred. You could modify the API's AttachmentRenderer.mxml to add smoothing to the image component and then monkey patch that into your viewer source.
0 Kudos
JoshWhite
Honored Contributor
Thanks, that works for me.  I'm sure I'll get questions about that and I'll just explain that it is because the image size is to large to show on the thumbnail.  I know that's not exactly what you said but it will work for me.  I'm using the compiled version so I won't be able to modify the mxml file and I don't want you to have to go that the trouble for this one minor thing.  I appreciate your explanation.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos