Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

182529
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
Hiran,

   No that is not an option at this time.
0 Kudos
HiranDias
Emerging Contributor
Hiran,

   No that is not an option at this time.


Thanks Robert, i guess i will need to use java on my viewer or to create one service for each state.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

   Not sure I understand why (right now) but when I removed the > and just used the greater than symbol in the XML it worked.


                <expression alias="Species Code Search" textsearchlabel="Search by species code">
                    <values>
                        <value prompt="Species e.g. AC RU">maximo_production.dbo.GIS_Balances.speciescode = '[value]'</value>
                        <value prompt="Height e.g. 8" isvaluerequired="false" operator="AND">maximo_production.dbo.GIS_Height.height >= [value]</value>
                        <value prompt="Diameter e.g. 2"  operator="AND" isvaluerequired="false">maximo_production.dbo.GIS_Diameter.diameter >= [value]</value>
                    </values>
                </expression>

There was also an issue with one of your fields (physcnt) attributes not have a space between it and the next attribute making it invalid xml syntax.
0 Kudos
SimonMorgan
Frequent Contributor
Simon,

   Not sure I understand why (right now) but when I removed the &gt; and just used the greater than symbol in the XML it worked.


                <expression alias="Species Code Search" textsearchlabel="Search by species code">
                    <values>
                        <value prompt="Species e.g. AC RU">maximo_production.dbo.GIS_Balances.speciescode = '[value]'</value>
                        <value prompt="Height e.g. 8" isvaluerequired="false" operator="AND">maximo_production.dbo.GIS_Height.height >= [value]</value>
                        <value prompt="Diameter e.g. 2"  operator="AND" isvaluerequired="false">maximo_production.dbo.GIS_Diameter.diameter >= [value]</value>
                    </values>
                </expression>

There was also an issue with one of your fields (physcnt) attributes not have a space between it and the next attribute making it invalid xml syntax.


It still didn't work for me, I removed &gt; and replaced with > in the first expression. I entered AC SA for species, 4 for height and left diameter blank, I also tried entering 0 for diameter.

What query did you try?

I am not sure what the issue with my physcnt field is, could you elaborate?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Simon,

What query did you try?

"AC RU" and height of 5
I am not sure what the issue with my physcnt field is, could you elaborate?

Sure Notice the space that is missing between the alias and the gridfield attributes:

<field name="maximo_production.dbo.GIS_Balances.physcnt" visible="true" alias="Physical Count"gridfield="true" gridfieldonly="true"/>
0 Kudos
AndyCowx1
Emerging Contributor
Honestly, I'm not sure if this question is related to the Enhanced Search widget or not. I noticed that some of Robert's sample maps use picture marker symbols which looks cool. Is that feature provided by the ES widget or can I set up picture marker symbols independantly ?

If I can do it, where is the configuration set up ?

An example is shown below :

http://gis.calhouncounty.org/FlexViewer3.1/index.html?config=config-eSearch.xml&esearch=2&slayer=3&e...


Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andy,

   The Picture Marker symbols were just setup in ArcMap as you would normally and then the map was published as a map service. This capability has nothing to do with Flex or the eSearch Widget.
0 Kudos
RichardSterling
Emerging Contributor
Hello,

I am trying to set up the eSearch widget on a non-geographic table containing metadata.

When the search query is run the results/data grid return the correct number of results. However, all columns and rows are blank.

I figure that since the correct numbers of results is being returned the widget is able to access the data, however it is not making it to the results table.

Any help would be greatly appreciated

Cheers
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   This normally happen when individuals miss the part of the documentation about the need to add the gridfield or gridfieldonly attributes to each field tag that you want to appear in the datagrid (so this mean you have to configure which fields you want to go to the datagrid, and you can not just use the fields all equals true attribute).
0 Kudos
RichardSterling
Emerging Contributor
Hi Robert.

Thank for your quick response.

It is actually when I set the fields all=false that the problem arises. when fields all=true then the results are displayed correctly in the results window (but of course not in the datagrid).

I've just reviewed the fields section of the configuration document.

I have fields all=false and each field desired in the datagrid specified as gridfield='true'. The visible field is true by default and therefore not necessary, I've also tried adding it, but it makes no difference.

When fields all=false the correct column headings are displayed in the data grid and the correct number of results, there is just no text displayed - only blank rows. Each row can be highlighted and the corresponding row in the results box will also highlight when this is done. Again on the results tab the correct number of results are given, but they are empty.

What else could I be missing?

Many thanks
0 Kudos