Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

180324
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
Spencer,

   From a quick look it seems that your NAICSDESCR field is missing the 'S' in your xml configuration.
0 Kudos
SpencerV
Deactivated User
Robert,

That seemed to fix the issue. That leads me to believe it is a similar problem in the other layers I am having issues with. Thanks for spotting that error. I have been staring at it for so long that I must have grown blind to it.

Thank you!

Spencer
0 Kudos
AndrewHayden1
Regular Contributor
I'm retrieving a value from searchResult.content and concatenating it to links.link (along with several flex globals), for the particular link I'm interested in, in configurePopUpInfo().  The problem I'm having is that when I click on the link in the popup and look at the url, the value I've concatenated is in an <i></i> tag.  What I don't understand is when I step through the code, the <i></i> tag doesn't show up (the links.link is as expected before it gets added to popUpInfo.description) so I'm not sure where it's coming from.  The value I'm concatenating has a space in it, I though if I replaced it with a %20 that'd take care of it.  It sill ends up in the <i></i> tag.  Any idea where this is coming from and/or how to get rid of it?
0 Kudos
JustinConner
Frequent Contributor
Found a problem. I've got your latest eSearch version and it works great. One problem though is with printing. When printing a parcel that is highlighted using the new print widget the graphic doesn't maintain it's transparency. It works when using the ESRI search widget however.
[ATTACH=CONFIG]25752[/ATTACH] [ATTACH=CONFIG]25753[/ATTACH]
If you want to see for yourself you can view the app at http://gis.co.wood.wi.us/Flex34/index.html

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   That is actually a known issue with FeatureLayers and the Print widget or maybe the Servers print service. I will need to check with the API team about the status of this issue.
0 Kudos
ElizabethB
Deactivated User
Hello All-
I'm new to Flex Viewer & especially to custom widgets.  I am using version 3.3 & downloaded the enhanced search widget for application builder.  I can't figure out how to get this search to work.  I am trying to query a view in the sde, that is joined to our parcel layer (also in sde).  That's really all I need to do for this first step - which I have to have up & running by this Thursday.  I'm trying to search through the ESRI documentation & the 2 threads on this widget but since I am under such a time crunch, I think I must be missing something. I am using URLs for my map service. Everything is located on one server. 

What part of this code do I need to fix, and can someone point me in the right direction? BTW, I had to delete some of the code related to graphical searches to make this post short enough for forum rules.  Thank you!

<configuration>
    <layers>
        <layer>
            <token/>
            <definitionexpression/>
            <enableexport>true</enableexport>
            <name>Owner Name Search</name>
            <url>http://192.1.1.xxx:6080/arcgis/rest/services/MyMapService/MapServer/4</url>
            <expressions>
                <expression alias="Owner_Name" textsearchlabel="Search Owner Last Name:" isvaluerequired="true">
                    <values>
                        <value prompt="Example: Owner: " isvaluerequired="true" operator="AND">upper(santarosagis.GISADMIN.QS36F_SRVIEW1.OWNER_NAME) LIKE upper('%[value]%')</value>
                    </values>
                </expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select Zoning</graphicalsearchlabel>
            <spatialsearchlayer>false</spatialsearchlayer>
            <titlefield>OWNER_NAME</titlefield>
            <fields all="true"/>
            <links/>
            <zoomscale usegeometry="true" zoompercent="2"/>
            <autoopendatagrid>false</autoopendatagrid>
            <queryattachments>false</queryattachments>
            <relates/>
            <symbology>
                <simplefillsymbol color="0xff0000" alpha="0.5">
                    <outline color="0xff0000" alpha="0.8" width=".4"/>
                </simplefillsymbol>
            </symbology>
        </layer>
    </layers>
    <tables>
        <table>
            <token/>
            <definitionexpression/>
            <enableexport>true</enableexport>
            <enableprintgrid title="Selected Sub Types">true</enableprintgrid>
            <name>Sub Type</name>
            <url>http://192.1.1.xxx:6080/arcgis/rest/services/MyMapService/MapServer/5</url>
            <expressions>
                <expression alias="Owner_Name" textsearchlabel="Search for Owner Last Name:">
                    <values>
                        <value prompt="Example: 100" userlist="60,70,80,90,100" autosubmit="false">REPLSCORE &gt; [value]</value>
                    </values>
                </expression>
            </expressions>
            <titlefield>FACILITYID</titlefield>
            <fields all="false">
                <field name="FACILITYID"/>
                <field name="FCLASS" alias="Feature Class" gridfield="true"/>
                <field name="ASSETCOND" alias="Asset Condition" gridfield="true"/>
                <field name="CONDDATE" alias="Condition Date" dateformat="MM/DD/YYYY" useutc="true" gridfield="true"/>
                <field name="REPLSCORE" alias="Replacement Score" gridfield="true"/>
            </fields>
            <links>
                <link alias="View Traffic Photo" disablelinksifnull="true">
                    <![CDATA[{agree_with_incident}]]>
                    <icon><![CDATA[assets/images/i_camera.png]]></icon>
                </link>
            </links>
            <relates/>
            <queryattachments>false</queryattachments>
        </table>
    </tables>
    </symbols>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Elizabeth,

   The first thing I would suggest is to attempt the query in the REST Service Directory URL and get your SQL Syntax validated and ensure the joined view is working through the Rest End Point.

http://192.1.1.xxx:6080/arcgis/rest/services/MyMapService/MapServer/4/query
0 Kudos
ElizabethB
Deactivated User
Hi Robert-

Yes, my sql syntax is correct. I should have mentioned I was masking the url to our server. Sorry about that! I am using fully qualified field names since the layer is joined to a view.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Elizabeth,

   So you have tested the Query at the REST End point just like I said in my last post (not just in ArcMap)?...
   I actually have never tested a SDE View Join in my widget so it might be an issue there...
0 Kudos
ElizabethB
Deactivated User
Elizabeth,

   So you have tested the Query at the REST End point just like I said in my last post (not just in ArcMap)?...
   I actually have never tested a SDE View Join in my widget so it might be an issue there...


Robert-
Yes, I was able to query the REST end point successfully. Is there a problem w/joining a layer to a table for querying in the flex viewer? I see that as a basic need of end users, but nothing in the out-of-the-box widgets seem to allow for a user defined query.  I am looking for a way to allow users to find parcels based on attributes of a CAMA table. This CAMA table is not really an sde view, it's actually a standalone table in our sde. (It has a legacy name of 'view' but it's not really a view). 

Sorry I seem to be confusing the issue!  Thanks for your help.  If you don't think your widget is appropriate for my task do you happen to know one that would be?
0 Kudos