Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part II

137460
552
04-19-2012 08:03 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I am pleased to announce the next release of my eSearch Widget.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e

Version 2.5.1.7 - 4/19/2012
* Added ability to search (flat/standalone/no geometry) tables.
* This time all Zooming uses the same scaling (popup, datagrid, widget results, zoom to all).
* Added Relates icon/button to datagrids so that you can click on it in the datagrid to
  open relates choice dialog.
* Move all skins to a skins package for cleaner organization.
* Links that are not associated with a field now work.
* Ability to disable the relates tab in the fixed widget is now configurable.
552 Replies
JohnLucotch
Regular Contributor
I do have more than one relate for this layer.  I have a feature class that has a relationship to a table.  This table has a relationship to another table.  I do see the relates in the rest directory.  I can get the relationship to work on the table that has relationships to the feature class and the other table but not vice versa.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   OK, so when you click the relate button are you presented with the "Choose Relate" window, and if so are you clicking on one of those listed relates before you click the done button?
0 Kudos
JohnLucotch
Regular Contributor
Okay, so I found out that if I ran the text query first then the graphical relate shows up.  I am presented with the "Choose Relate" Window where I have two choices.  I am clicking the listed relates as there is no done button.

John,

   OK, so when you click the relate button are you presented with the "Choose Relate" window, and if so are you clicking on one of those listed relates before you click the done button?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   So you are good now?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Next release with minor bug fix and additions is now available:

   Version 3.0.12 - 10/19/2012
* Fixed bug with busy cursor not going away when unique values are retrieved for a layer that is not
  yet loaded.
* Added all option to the unique values list.
* Searching for "null" from the unique values now works.
* Zoom to all now works ever when you are selecting a stack of points with the same coordinates.
0 Kudos
JohnLucotch
Regular Contributor
Yep I'm good now.  Thanks.  One final question though.  Can your widget populate a drop down list based on all values within a field?
0 Kudos
JohnLucotch
Regular Contributor
I'm good now.  Thanks for everything.
0 Kudos
StevenFoley
Occasional Contributor
Steve,

   You have a couple of thing wrong here (all covered by the documentation):

This is an example of what a layer configuration should look like:

        <layer>
            <definitionexpression></definitionexpression>
            <enableexport>false</enableexport>
            <enableprintgrid>true</enableprintgrid>
            <name>Traffic Cameras</name>
            <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2</url>
            <expressions>
                <expression alias="Traffic Camera Description" textsearchlabel="Search Traffic Cameras by Location...">
                    <values>
                        <value prompt="Example: I-71" userlist="I-71,I-64">upper(DESCRIPTION) LIKE upper('[value]%')</value>
                    </values>
                </expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel>
            <spatialsearchlayer>true</spatialsearchlayer>
            <titlefield>DESCRIPTION</titlefield>
            <fields all="false">
                <field name="DESCRIPTION" alias="Description" gridfield="true" />
                <field name="URL" alias="Show Image" hyperlinkgridfield="true"
                    hyperlinkaliastext="Get Traffic Image" visible="false" />
                <field name="ONLINE" alias="Online" gridfield="true"
                    gridfieldonly="false" />
                <field name="LAST_UPDATED" alias="Last Updated" gridfield="true"
                    gridfieldonly="false" dateformat="MM/DD/YYYY" useutc="true" />
            </fields>
            <links>
                <link alias="View Traffic Photo" diablelinksifnull="true">
                    <![CDATA[{URL}]]>
                    <icon><![CDATA[assets/images/i_camera.png]]></icon>
                </link>
            </links>
            <zoomscale>5000</zoomscale>
            <queryattachments>false</queryattachments>
        </layer>



Thanks for the help Robert.  I got it working perfectly.
0 Kudos
StevenFoley
Occasional Contributor
So I do have one more quick question I am hoping someone can help with.  When I click on the icon to open my network document link, which is \\bcg.ad.bcgov.us\..... the link tries to open http://bcg.ad.bcgov.us/...   Any ideas on how to get it not to add the http://

<layer>
            <name>Encumbrance</name>
            <fields>
                <field name="FILE_NO" alias="File Number"/>
                <field name="INSTRUMENT" alias="Instrument"/>
                <field name="ITEM_NO" alias="Item #"/>
                <field name="CONSTR_NO" alias="Construction Dwg #"/>
                <field name="RECORDED_DATE" alias="Recorded Date"/>
                <field name="JOB_ORDER" alias="Job Order #"/>
                <field name="GRANTOR" alias="Grantor"/>
                <field name="ROW_DEED" alias="Deed Ref"/>
                <field name="PLAT_REF" alias="Plat Ref"/>
                <field name="DEPRM" alias="DEPRM Interest"/>
                <field name="MCODE" alias="MCODE"/>
                <field name="ENCUMBRANCETYPE" alias="Right-of-Way"/>
                <field name="RW_LINEN" alias="RIght_of_Way" hyperlinkgridfield="true"/>
            </fields>
            <links>
                <link field="RW_LINEN" alias="Linen" disablelinksifnull="true">
                    <![CDATA[{RW_LINEN}]]>
                    <icon/>
                </link>
            </links>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>

Thanks So much for this awesome tool.

Steve
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Steve,

   Flex Viewer is a Internet application and thus should not be using UNC paths directly (even if the app is only available on your intranet). You need to create a virtual directory that uses the UNC path as its source that way you have a REAL url to use in your link field.
0 Kudos