Splash Page interferes with Query Widget

750
6
03-14-2011 10:18 AM
LeeAllen
Frequent Contributor
Using Flexviewer 2.2.  Using standard query widget to return results on site load.  All works good until I enabled Splash widget on site, then the query widget doesn't work, returns no results.  Using mySplash widget from R. Scheitlin.  Splash widget is working properly.  I have looked over code and forums with no success.  Any ideas or help is appreciated.

<configuration>
    <title>Judicial Tax Foreclosure Property Finder</title>
    <subtitle>Case No. 10-C-963 & 10-C-828</subtitle>
    <logo>assets/images/SNlogo.png</logo>
    <style>
        <colors>0xFFFFFF,0x39628C,0x355D89,0x294867,0xFFFFFF</colors>
        <alpha>0.8</alpha>
    </style>
    <bing key="Aho7hqpOLzBQkAX1H0BID3UpOzV-VCDgfMycPaMFh7xaKYeEBqUIWEfsjESxbAMR"/>

  <!-- UI elements -->
    <!--splashpage label="Shawnee County Judicial Tax Sale" config="widgets/mySplash/TaxSaleSplashWidget.xml" url="widgets/mySplash/SplashWidget.swf"/-->
    
    <widget left="10"  top="55"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <!--widget left="100" bottom="1" config="widgets/ProgressBar/ProgressBar.xml" url="widgets/ProgressBar/ProgressBarWidget.swf"/-->
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget left="50" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget_TaxSale.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="3" bottom="3"    config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
    <widget right="400" bottom="5"    config="widgets/FullScreenWidget/FullScreenWidget.xml" url="widgets/FullScreenWidget/FullScreenWidget.swf"/>
    <widget right="359" bottom="5"       config="widgets/ExportMap/exportMap.xml" url="widgets/ExportMap/exportMap.swf"/>
    <widget left="3" bottom="40"    config="widgets/StaticImage/StaticImageWidget_logo.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
    <widget left="400" top="55"    config="widgets/StaticImage/StaticImageWidget_TaxSale.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
    <!--widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipWidget.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/-->
    
    
    <map initialextent="-10671600 4717200 -10623600 4736500" top="40" esrilogovisible="false">
        <lods><!-- only show a few levels -->
                <lod resolution="76.4370282850732" scale="288895.277144"/>
                <lod resolution="38.2185141425366" scale="144447.638572"/>
                <lod resolution="19.1092570712683" scale="72223.819286"/>
                <lod resolution="9.55462853563415" scale="36111.909643"/>
                <lod resolution="4.77731426794937" scale="18055.954822"/>
                <lod resolution="2.38865713397468" scale="9027.977411"/>
                <lod resolution="1.19432856685505" scale="4513.988705"/>
                <lod resolution="0.597164283559817" scale="2256.994353"/>
                <lod resolution="0.298582141647617" scale="1128.497176"/>
        </lods>
        <basemaps>
            <!--layer label="Bing Hybrid" type="bing" visible="false" style="road" culture="en-US" /-->
            <layer label="Aerials/Streets" type="bing" visible="false" style="aerialWithLabels" culture="en-US" />
            <!--layer label="Aerial"  type="tiled" visible="false" alpha="1"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/-->
            <!--layer label="Online Streets"    type="tiled" visible="false" alpha="1"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/-->
            <layer label="Local Streets" type="tiled" visible="true"  alpha="1"
                   url="http://gis.snco.us/ArcGIS/rest/services/Basemap_102100/MapServer"/>       
        </basemaps>
        <operationallayers>
            <layer label="Tax Sale Properties" type="dynamic" visible="false"
                   url="http://gis.snco.us/ArcGIS/rest/services/TaxSale/MapServer"/>
            <layer label="Property Information" type="dynamic" visible="true"
                   url="http://gis.snco.us/ArcGIS/rest/services/Cadastral/MapServer"/>
               
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        
              
        <widget label="Search Tax Sale Properties" right="5" top="55"
                icon="assets/images/i_dollar_GE.png" preload="open"
                config="widgets/Search/SearchWidget_TaxSale.xml"
                url="widgets/Search/SearchWidget.swf"/>
        <widget label="Tax Sale Properties" right="50" top="317"
                icon="assets/images/i_dollar_GE.png"
                preload="minimized"
                config="widgets/Query/QueryWidgetTaxSale.xml"
                url="widgets/Query/QueryWidget.swf"/>
        
        <widget label="Print" left="450" top="400"
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>
        
        <widget label="Street View" left="60" top="400"
                icon="assets/images/i_Streetview.png"
                config="widgets/FrStreetview/FrStreetview.xml"
                url="widgets/FrStreetview/FrStreetview.swf"/>            
        
            
    </widgetcontainer>

</configuration>
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Lee,

  Can you post your

1. QueryWidgetTaxSale.xml
2. TaxSaleSplashWidget.xml
3. SearchWidget_TaxSale.xml
0 Kudos
LeeAllen
Frequent Contributor
Here they are, thanks!:

QueryWidgetTaxSale.xml

<?xml version="1.0" ?>
<configuration>
    <layer>http://gis.snco.us/ArcGIS/rest/services/TaxSaleParcels/MapServer/0</layer>
    <titlefield>PID</titlefield>
    <linkfield>Link</linkfield>
    <fields all="false">
        <field name="PID"/>
        <field name="Tract"/>
        <field name="Link"/>
        <field name="PADDRESS" alias="Address"/>
        <field name="CASE_NO" alias="Case Number"/>
    </fields>
    <filterfield>
        <name>Tract</name>
        <alias></alias>
    </filterfield>
    <refreshrate></refreshrate>
    <zoomscale>5000</zoomscale>
    <query>1=1</query>
    <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>
TaxSaleSplashWidget.xml

<?xml version="1.0" ?>
<configuration>
    <!--
        Refer to the doc below for valid HTML tags that can be used for the content
        http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/conversion/TextConverter.html#TEXT_FIELD_HTML_FORMAT
    -->
    <width>475</width>
    <height>530</height>
    <contents>
        <content tabname="Site Disclaimer">
        <![CDATA[
        <p align='center'>
            <img src='assets/images/SNlogo.png' width='70' height='70' />
        </p>
        <p>
            <font size="16"><b>Shawnee County Judicial Tax Foreclosure Property Finder</b></font>
        </p>
        <p>
        <br>
        <p>
            Sale to be held at: Kansas Expocentre, Heritage Hall, April 13th @ 9:00 A.M.
        </p>
        <br>    
            You must AGREE to the disclaimer below to enter the site. 
        <br>       
            Rules of use are governed by the Shawnee County GIS disclaimer:
            Data Disclaimer: All maps and/or data created and produced by Shawnee County are developed from information
            deemed reliable. Shawnee County makes no assertions as to the correctness of such
            information; however, and by accepting this map and/or data you absolve Shawnee County from
            any liability related to its use for any purpose.  All maps and/or data created by Shawnee County
            are subject to change according to updated information received without any prior notice and are
            not intended to serve as any sort of legal form of conveyance or boundary survey. Any images or maps shown may not
            reflect current information, and Shawnee County is not liable any misinformation or misperception by the user.
        </p>
                
       ]]>
       </content>
       </contents>
       <buttons>
        <button label="Agree" action="close" url="" />
        <button label="Disagree" action="redirect" url="http://www.snco.us/counselor/" />
        <button label="Home" action="link" url="http://www.snco.us" />
    </buttons>
    <dontshowlabel>Don't show again</dontshowlabel>
    <disabledontshowoption>false</disabledontshowoption>
    
  
    
</configuration>
SearchWidgetTax_Sale.xml

<?xml version="1.0" ?>
<configuration>
    <layers>
        <layer>
          <name>Search Tax Sale Properties</name>
          <url>http://gis.snco.us/ArcGIS/rest/services/TaxSaleParcels/MapServer/0</url>
          <expression>PID = '[value]' OR Tract = '[value]'</expression>
          <textsearchlabel>Search [Use: Tract Number or PID]</textsearchlabel>
            <titlefield>PID</titlefield>
            <linkfield></linkfield>
            <fields all="false">
                <field name="PID"/>
              <field name="Tract"/>
              <field name="PADDRESS" alias="Address"/>
              <field name="CASE_No" alias="Case Number"/>
              
            </fields>
        </layer>
      
    </layers>
    <symbols>
       <picturemarkersymbol> url=assets/images/i_dollar_GE.png"</picturemarkersymbol>
    </symbols>
    <zoomscale>2000</zoomscale>
    <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lee,

  It is easier if I use your environment as close as possible so I need another file.

HeaderControlWidget_TaxSale.xml
0 Kudos
LeeAllen
Frequent Contributor
Here it is, thanks.

HeaderControllerWidget_TaxSale.xml

<?xml version="1.0" ?>
<configuration>
    <about>
       <label>Disclaimer</label>
       <visible>true</visible>
       <width>375</width>
       <height>425</height>
       <content>
        <![CDATA[<p align='center'><img src='assets/images/SNlogo.png' width='70' height='70' /></p>
        <font size="16"><b>Shawnee County GIS Web Application.</b></font>
        <br><p>Data Disclaimer: All maps and/or data created and produced by Shawnee County are developed from information
deemed reliable. Shawnee County makes no assertions as to the correctness of such
information; however, and by accepting this map and/or data you absolve Shawnee County from
any liability related to its use for any purpose.  All maps and/or data created by Shawnee County
are subject to change according to updated information received without any prior notice and are
not intended to serve as any sort of legal form of conveyance or boundary survey.</p>
        <br>More information at links below:
        <textformat indent="25"><p><br><a href="http://help.arcgis.com/en/webapps/flexviewer/" target='_blank'><font color='#FFFF00'>Help [In Progress]</font></a>
        <br><a href="mailto:lee.allen@snco.us" target='_blank'><font color='#FFFF00'>Contact SN Co GIS</font></a>
        <br><a href="http://www.snco.us" target='_blank'><font color='#FFFF00'>Shawnee County Home Page</font></a></p></textformat>
        ]]>
        </content>
        <btnlabel>OK</btnlabel>
    </about>
</configuration>
0 Kudos
LeeAllen
Frequent Contributor
Robert,

After extensive testing on IE, Firefox, and Chrome, it looks like it is not the Splash screen that is causing it, but I can't tell what is.  Once the site loads, the query widget may display the features, or it may not.  A refresh may bring them in, may not.  Here is the site, one with splash one without, I get similar results on both:

http://gis.snco.us/publicgis2-2/index.html?config=configTaxSale_Splash.xml
http://gis.snco.us/publicgis2-2/index.html?config=configTaxSale.xml
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lee,

   Ya,   This is actually a known bug in the viewer and has to do with the info window call back function on getting dispatched once and in the query widget the actual query is started when the info window callback is executed. What that means is if you have any other widget that has an info window and it just happens to get loaded first then the query widget never gets its callback fired and thus never performs the query. This is slated to be fixed in Flex Viewer 2.3 next month. I am looking for a workaround.
0 Kudos