Select to view content in your preferred language

2.4 PopUp scrollbar bug

3937
25
08-04-2011 03:59 PM
DasaPaddock
Esri Regular Contributor
A bug has been found in the 2.4 release where if you have many fields shown and the scrollbar appears in the PopUp, it only works the first time the PopUp opens. The second time it opens, only the title is shown. The field area is blank. The fix for this is in the attached PopUpRendererSkin.

Here's more information about how to use "custom" skins:
http://help.arcgis.com/en/webapi/flex/help/index.html#/Styling_and_skinning_overview/017p0000001s000...
Tags (1)
0 Kudos
25 Replies
PierreLarondelle
New Contributor III
Hello All,

Thanks for already debugging this issue (I encounter it end of last week) but as we are not all Flex experts, could anybody be kind to give access to a compiled version of the solved problem in order to put the solution directly in the flexviewer tree ?

And, as it is a bug, it would maybe also nice to provide us a fixed version of the flexviewer 2.4 to download from the website ... 😉

Anyway, thanks a lot for the very usefull work done here !

Pierre.
0 Kudos
JoshWhite
Regular Contributor III
I have to agree with Pierre, those of us using the compiled version need the compiled fix.  This is after all the Viewer forum not the API forum.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
BjornSvensson
Esri Regular Contributor
This fix will be part of the next release of the ArcGIS Viewer for Flex.

One work-around that might help you in the meantime (if you're not OK with using fewer fields, nor with compiling the source code), is to use the <description> tag.

From the documentation on Pop-up configuration files:
"By default the pop-up window shows the visible fields in a key-value styled table. Alternatively, you can use the <description> tag to present it in a different manner, for example in a sentence or paragraph structure"

http://help.arcgis.com/en/webapps/flexviewer/help/#/Pop_up_configuration_files/01m30000002q000000/
0 Kudos
JoshWhite
Regular Contributor III
This fix will be part of the next release of the ArcGIS Viewer for Flex.

One work-around that might help you in the meantime (if you're not OK with using fewer fields, nor with compiling the source code), is to use the <description> tag.

From the documentation on Pop-up configuration files:
"By default the pop-up window shows the visible fields in a key-value styled table. Alternatively, you can use the <description> tag to present it in a different manner, for example in a sentence or paragraph structure"

http://help.arcgis.com/en/webapps/flexviewer/help/#/Pop_up_configuration_files/01m30000002q000000/


I have attempted this but I'm not sure exactly on the format, I can't get it display like I want.  Here's how it is in the example.
<configuration>
    <title>{NAME}</title>
    <description>
        <![CDATA[<b>Hurricane {NAME}</b> was a <i>category {CAT}</i> hurricane that occurred in {BASIN} on {TRACK_DATE}. It had a wind speed of {WIND_KTS} knots.]]>
    </description>
    <fields>
        <field name="NAME"/>         
        <field name="WIND_KTS"/>
        <field name="CAT"/>
        <field name="BASIN"/>
        <field name="TRACK_DATE">
            <format dateformat="shortDateShortTime"/>
        </field>
    </fields>
</configuration>


AS of now, this is how I have mine, trying to mimic the sample.  It is ignoring the description part and just filling it out like normal, of course, not working on the second click.  This is a major enough bug that I feel it should be corrected immediately.

<configuration>
    <title>{OwnershipRecords.OWNER}</title>
 <description>
 <![CDATA [[Parcel ID: {OwnershipRecords.PID} <br>
 Owner: {OwnershipRecords.OWNER} <br>
 Mailing Address: {OwnershipRecords.MAILADDRES} <br>]>
 </description>
 
     <fields>
        <field name="OwnershipRecords.PID"   alias="Parcel ID" visible="true"/>
        <field name="OwnershipRecords.OWNER"   alias="Owner" visible="true"/>
        <field name="OwnershipRecords.MAILADDRES"  alias="Mailing Address" visible="true"/>
        <field name="OwnershipRecords.MAILCITY"   alias="Mailing City" visible="true"/>
        <field name="OwnershipRecords.MAILST"   alias="Mailing State" visible="true"/>
        <field name="OwnershipRecords.MAILZIP"    alias="Mailing Zip Code" visible="true"/>
 <field name="OwnershipRecords.LOT"     alias="Lot" visible="true"/>
 <field name="OwnershipRecords.BLK"     alias="Block" visible="true"/>
 <field name="OwnershipRecords.TRACT"     alias="Legal Description" visible="true"/>
 <field name="Subdiv code table.Subdivisio"     alias="Subdivision" visible="true"/>
 <field name="OwnershipRecords.SEC"     alias="Section" visible="true"/>
 <field name="OwnershipRecords.TWP"     alias="Township" visible="true"/>
 <field name="OwnershipRecords.RNG"     alias="Range" visible="true"/>
 <field name="OwnershipRecords.CALCACRES"    alias="Acres" visible="true"/>
 <field name="OwnershipRecords.PROPNUM"    alias="Number" visible="true"/>
 <field name="OwnershipRecords.PROPDIR"    alias="Direction" visible="true"/>
 <field name="OwnershipRecords.PROPST"     alias="Street" visible="true"/>
 <field name="OwnershipRecords.LOTWIDTH"    alias="Lot Width" visible="true"/>
 <field name="OwnershipRecords.LOTDEPTH"    alias="Lot Depth" visible="true"/>
    </fields>
    <showattachments>true</showattachments>
</configuration>
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Josh,

   The part about the info not showing on the second click is the bug that you are aware of, the rest of the issue you are having is related to improper configuration.

Notice in the sample that you listed all of the fields are used in the description tag and each of the fields listed under the fields element only have the attribute of name.

<configuration>
    <title>{NAME}</title>
    <description>
        <![CDATA[<b>Hurricane {NAME}</b> was a <i>category {CAT}</i> hurricane that occurred in {BASIN} on {TRACK_DATE}. It had a wind speed of {WIND_KTS} knots.]]>
    </description>
    <fields>
        <field name="NAME"/>         
        <field name="WIND_KTS"/>
        <field name="CAT"/>
        <field name="BASIN"/>
        <field name="TRACK_DATE">
            <format dateformat="shortDateShortTime"/>
        </field>
    </fields>
</configuration>


As stated in the documentation: http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Pop_up_configuration_files/01m30000002...
Use either <description> or <fields> for the main content.


You wound need something more like this:

<configuration>
    <title>{OwnershipRecords.OWNER}</title>
    <description>
    <![CDATA [[Parcel ID: {OwnershipRecords.PID} <br>
    Owner: {OwnershipRecords.OWNER} <br>
    Mailing Address: {OwnershipRecords.MAILADDRES} <br>
    Continue to add all your fields here: {OwnershipRecords.???} <br>]]>
    </description>
    
        <fields>
        <field name="OwnershipRecords.PID" />
        <field name="OwnershipRecords.OWNER" />
        <field name="OwnershipRecords.MAILADDRES" />
        <field name="OwnershipRecords.MAILCITY" />
        <field name="OwnershipRecords.MAILST" />
        <field name="OwnershipRecords.MAILZIP" />
    <field name="OwnershipRecords.LOT" />
    <field name="OwnershipRecords.BLK" />
    <field name="OwnershipRecords.TRACT" />
    <field name="Subdiv code table.Subdivisio" />
    <field name="OwnershipRecords.SEC" />
    <field name="OwnershipRecords.TWP" />
    <field name="OwnershipRecords.RNG" />
    <field name="OwnershipRecords.CALCACRES" />
    <field name="OwnershipRecords.PROPNUM" />
    <field name="OwnershipRecords.PROPDIR" />
    <field name="OwnershipRecords.PROPST" />
    <field name="OwnershipRecords.LOTWIDTH" />
    <field name="OwnershipRecords.LOTDEPTH" />
    </fields>
    <showattachments>true</showattachments>
</configuration>
0 Kudos
JoshWhite
Regular Contributor III
That still doesn't solve the problem, in fact now I'm getting an error thrown.  I'm using Notepad++ and one of the options allows me to open in IE and it gives me the following message:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

An opening '[' character was expected. Error processing resource 'file:///O:/acmapflex/popups/PopUp_parcels_description.xml...

<![CDATA [[Parcel ID: {OwnershipRecords.PID}
---------^

In the Flex Viewer I get the following error message:
http response status: 200

Fault code: Client.CouldNotDecode

Fault info: Error #1090

Fault details: null

Clearly it has something to do with that opening line, what is CDATA is that C:\Data?  If that's the case it should either be a UNC path or something like Oacmapflex instead of CDATA.  Also I would note that in Notepad++ it highlights the open and close brackets around that first statement as if something is missing.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Josh,

   I did not notice until now that you have an extra square bracket at the begining of your CDATA. Try this:

<?xml version="1.0" ?>
<configuration>
    <title>{OwnershipRecords.OWNER}</title>
    <description>
    <![CDATA [Parcel ID: {OwnershipRecords.PID} <br>
    Owner: {OwnershipRecords.OWNER} <br>
    Mailing Address: {OwnershipRecords.MAILADDRES} <br>
    Continue to add all your fields here: {OwnershipRecords.???} <br>]]>
    </description>
    <fields>
        <field name="OwnershipRecords.PID" />
        <field name="OwnershipRecords.OWNER" />
        <field name="OwnershipRecords.MAILADDRES" />
        <field name="OwnershipRecords.MAILCITY" />
        <field name="OwnershipRecords.MAILST" />
        <field name="OwnershipRecords.MAILZIP" />
        <field name="OwnershipRecords.LOT" />
        <field name="OwnershipRecords.BLK" />
        <field name="OwnershipRecords.TRACT" />
        <field name="Subdiv code table.Subdivisio" />
        <!-- I am wondering about the above field name is that correct? -->
        <field name="OwnershipRecords.SEC" />
        <field name="OwnershipRecords.TWP" />
        <field name="OwnershipRecords.RNG" />
        <field name="OwnershipRecords.CALCACRES" />
        <field name="OwnershipRecords.PROPNUM" />
        <field name="OwnershipRecords.PROPDIR" />
        <field name="OwnershipRecords.PROPST" />
        <field name="OwnershipRecords.LOTWIDTH" />
        <field name="OwnershipRecords.LOTDEPTH" />
    </fields>
    <showattachments>true</showattachments>
</configuration>
0 Kudos
JoshWhite
Regular Contributor III
I double checked the field name you mentioned in the REST services directory it is correct.  It cuts the n off of the end. That table is not in a geodatabase, I think I just created a dbf file from an Excel spreadsheet.  I'm still getting the Could Not Decode error 1090 from the viewer after removing the other square bracket.  There is something small that it is not liking.
<configuration>
    <title>{OwnershipRecords.OWNER}</title>
 <description>
 <![CDATA [Parcel ID: {OwnershipRecords.PID} <br>
 Owner: {OwnershipRecords.OWNER} <br>
 Mailing Address: {OwnershipRecords.MAILADDRES} ]]
 </description>
 
    <fields>
    <field name="OwnershipRecords.PID"/>
    <field name="OwnershipRecords.OWNER"/>
    <field name="OwnershipRecords.MAILADDRES"/>
    <field name="OwnershipRecords.MAILCITY"/>
    <field name="OwnershipRecords.MAILST"/>
    <field name="OwnershipRecords.MAILZIP"/>
 <field name="OwnershipRecords.LOT"/>
 <field name="OwnershipRecords.BLK"/>
 <field name="OwnershipRecords.TRACT"/>
 <field name="Subdiv code table.Subdivisio"/>
 <field name="OwnershipRecords.SEC"/>
 <field name="OwnershipRecords.TWP"/>
 <field name="OwnershipRecords.RNG"/>
 <field name="OwnershipRecords.CALCACRES"/> 
 <field name="OwnershipRecords.PROPNUM"/>
 <field name="OwnershipRecords.PROPDIR"/>
 <field name="OwnershipRecords.PROPST"/>
 <field name="OwnershipRecords.LOTWIDTH"/>
 <field name="OwnershipRecords.LOTDEPTH"/>
    </fields>
    <showattachments>true</showattachments>
</configuration>
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Josh,

   Try copying exactly what I have here. Every time you seem to add a new little syntax error. The items indicated in red have to be there.

<?xml version="1.0" ?>
<configuration>
    <title>{OwnershipRecords.OWNER}</title>
    <description>
    <![CDATA [Parcel ID: {OwnershipRecords.PID} <br>
    Owner: {OwnershipRecords.OWNER} <br>
    Mailing Address: {OwnershipRecords.MAILADDRES} ]]>
    </description>
    
    <fields>
    <field name="OwnershipRecords.PID"/>
    <field name="OwnershipRecords.OWNER"/>
    <field name="OwnershipRecords.MAILADDRES"/>
    <field name="OwnershipRecords.MAILCITY"/>
    <field name="OwnershipRecords.MAILST"/>
    <field name="OwnershipRecords.MAILZIP"/>
    <field name="OwnershipRecords.LOT"/>
    <field name="OwnershipRecords.BLK"/>
    <field name="OwnershipRecords.TRACT"/>
    <field name="Subdiv code table.Subdivisio"/>
    <field name="OwnershipRecords.SEC"/>
    <field name="OwnershipRecords.TWP"/>
    <field name="OwnershipRecords.RNG"/>
    <field name="OwnershipRecords.CALCACRES"/>    
    <field name="OwnershipRecords.PROPNUM"/>
    <field name="OwnershipRecords.PROPDIR"/>
    <field name="OwnershipRecords.PROPST"/>
    <field name="OwnershipRecords.LOTWIDTH"/>
    <field name="OwnershipRecords.LOTDEPTH"/>
    </fields>
    <showattachments>true</showattachments>
</configuration>
0 Kudos