Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

177024
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
Kevin,

   If you leave it to true, do all three of your queries work for that layer?
0 Kudos
KevinHighland
Frequent Contributor
Yes, all three of them work.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kevin,

  So I have joined data working fine in eSearch, so I am not sure what issue you are running into. Without access to your map service, all I can tell you is the steps I would take to diagnose the issue yourself.


  1. Limit your fields to one field that same one you use for the titlefield. See if this works.

  2. If #1 works then you likely have an issue in one of the field names you are using.

  3. Check the CaSe of your field names as Flex Language is a CaSe sensitive language.

0 Kudos
KevinHighland
Frequent Contributor
I finally got it to work. When I changed the title field to use the full name of the field, everything seemed to sync up and work.

Thanks for your help!
Kevin
0 Kudos
JeffmcGuire
Deactivated User
Question about Fixed Datagrid Setup

Robert,

First, thank you for all the code!

**Flex viewer 3.6 working with the 3.6.1 version of the search widget.

I am trying to follow the instructions to get the Fixed DG code section into the appropriate part of the configuration.

I don't see a UI elements comment in the code, and I also dont see the overview map widget either.  Im using a find tool, and reading a lot.  Trying to figure out what I am missing.

Thanks for taking the time to answer an easy one.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Are you looking in the main config.xml?

    <!-- UI elements -->
    <widget left="0" right="0" bottom="0" url="widgets/eSearch/SearchWidgetFixedDG.swf" config="widgets/eSearch/SearchWidgetFixedDG.xml"/>
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
0 Kudos
JeffmcGuire
Deactivated User
I was not looking at the main config. 

I was confused about how several things were working.

Several hours later and I have a slightly better question.  🙂

Currently have some examples working in the floating box, but I haven't been able to make the fixed datagrid with the tabs appear.

I'm sure I am missing something obvious, but I can't find it at the moment.

Included the search config and the main config.  Thanks in advance for helping me out.  I'm learning a lot.

Attached the whole thing all put together, the code snippets were too long to post.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

  ... You sent me the whole eSearch.zip ... What about just the XML files you are attempting to configure? 

Better yet in the Enhanched Search Widget XML Configuration.pdf you will find that there is a fixedorfloat tag that needs to be set to fixed.

<floatorfixed disablerelatestabinfixed="false">fixed</floatorfixed>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   OK, I figured out that your changes where in the compiled_FV3.6 folder. Alright your issue is that you have fields all attribute set to true and you will not get any data to go to the datagrid if you don't have a gridfield="true" set on the fields that you want to appear in the datagrid. There is no option to just send all the fields to the datagrid, and that is intentional to prevent lazy configuration. You can look in the eSearchWidget.xml inside the uncompiled folder and see several examples of how to specify fields and the gridfield="true". Also it looks like you have the title field set to :
<titlefield>EV Wells</titlefield>
are you sure that this is a valid field name?

Another configuration issue I see in the config-eSearch.xml you provided is this:

<widgetcontainer layout="fixed">
you are missing the "ed" after fix. You can find approved layout types in the viewer documentation:

http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m300000003000000.htm
0 Kudos
JeffmcGuire
Deactivated User
Robert,

Thanks for sticking with me.

I have made some changes and am understanding a few things better.  I am as of yet unable to produce the fixed grid down at the bottom that I see in the demo.

I reviewed everything you suggested and have made corrections.  You are boon to the community and I am learning a lot thanks to your help.  I sincerely appreciate the support.

I have included the main config, the esearch, and the fixed dg xml just to make sure you can see what I have tried.

Thanks again for being so active and helpful here.
0 Kudos