Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

142585
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
Thanh,

   What does your dateformat for that field in your eSearchWidget.xml look like?
<field name="ORIGINSTDATE" alias="Orig Inst Date" gridfield="true" dateformat="MM/DD/YYY" />
0 Kudos
ThanhThai
Emerging Contributor
That was it.  Thank you so much, Robert!  Have a great day!
0 Kudos
pWHISLER
Emerging Contributor
Hi!  So I set this up a while ago, looks like I'm using ArcGIS Viewer Version 3.6 and eSearch version Version 3.5.4 - 11/5/2013.  I know you don't support the older versions, but I wanted to ask a question before I go through the trouble of upgrading.

you wrote:

Version 3.6.1 - 12/19/2013

Fixed issue With search layer symbology not showing when using a URL search until a selection was made in the datagrid.

And I wanted to know if that is what my problem is, when doing a search, no symbols show up and the map area is not highlighted in the same way the regular search widget acts.

regular search widget:

[ATTACH=CONFIG]34180[/ATTACH]

eSearchWidget:

[ATTACH=CONFIG]34181[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
p WHISLER,

  The symbology not showing up would only be related to that fix if you are talking about a URL search. It would be best to show me the layer configuration in your eSearchWidget.xml for the layer in question.
0 Kudos
pWHISLER
Emerging Contributor
p WHISLER,

  The symbology not showing up would only be related to that fix if you are talking about a URL search. It would be best to show me the layer configuration in your eSearchWidget.xml for the layer in question.


here is one:

<layer>
            <token/>
            <definitionexpression></definitionexpression>
            <enableexport>true</enableexport>
            <name>Search Stops APC</name>
            <url>http://serveripaddress/ArcGIS/rest/services/BusStops/MapServer/154</url>
            <expressions>
                <expression alias="Stops APC" textsearchlabel="List with the selected stops and average daily ridership information at stop level, estimated using LYNX Automated Passenger Data collection for one transit bit period.">
                    <values>
                        <value prompt="[Example: 461 for 46E and 462 for 46W or 4%]"> ROUTE = [value]</value>
                    </values>
                </expression>
    <expression alias="" textsearchlabel="">
                    <values>
                        <value prompt=""></value>
                    </values>
                </expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select List with the selected stops and average daily ridership information at stop level, estimated using LYNX Automated Passenger Data collection for one transit bit period.</graphicalsearchlabel>
            <spatialsearchlayer>false</spatialsearchlayer>            
   <titlefield>ROUTE</titlefield>
            <fields all="false">
                <field name="BUSSTOPID" alias="Stop Id"gridfield="true" />
                <field name="NAME" alias="Stop Name" gridfield="true"/> 
    <field name="ROUTE" alias="Route"gridfield="true"/>
                <field name="DIR" alias="Direction" gridfield="true"/>
    <field name="DAY_ON" alias="Ave Dayly ON"gridfield="true"/>
                <field name="DAY_OFF" alias="Ave Dayly OFF" gridfield="true"/>
    <field name="NTRIPSAMPL" alias="Number Samples"gridfield="true"/> 
            </fields>
            <links/>
            <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
            <autoopendatagrid>true</autoopendatagrid>
            <queryattachments>false</queryattachments>
            <relates/>
            <symbology>
                <simplefillsymbol color="0xff0000" alpha="0.5">
                    <outline color="0xff0000" alpha="0.8" width="2" />
                </simplefillsymbol>    
            </symbology>
        </layer>  
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
p whisler,

  So your image showed what looks like a point feature yet in your layers XML you are trying to symbolize a polygon...

            <symbology>
                <simplefillsymbol color="0xff0000" alpha="0.5">
                    <outline color="0xff0000" alpha="0.8" width="2" />
                </simplefillsymbol>                
            </symbology>
0 Kudos
pWHISLER
Emerging Contributor
p whisler,

  So your image showed what looks like a point feature yet in your layers XML you are trying to symbolize a polygon...

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


Ok, so looking at the documentation, I should use picturemarkersymbol right?  I tried this:

<symbology>                
<picturemarkersymbol url="/assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />      
</symbology>


and that worked! thanks!!!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
pwhisler,

   there is an extra slash in your url.

<symbology>
    <picturemarkersymbol url="/assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />
</symbology>
0 Kudos
JulianInskip
Frequent Contributor
Hi Robert.

When using <uniquevalsfromfield> is it possible to have the "all" (<alloptiontext>) as the first (default) option and then have the rest of your values under that?

I know this can be done when using the <userlist> option.

Thanks.
Julian
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Julian,

  Currently no.
0 Kudos