Select to view content in your preferred language

Popup Truncated Description

2140
6
Jump to solution
01-16-2012 02:02 PM
FrankRoberts
Occasional Contributor III
I???ve seen this issue for a while, but was hoping it might be fixed in the 2.5 version of the viewer, but unfortunately not...  So how does one fix the issue of the description being truncated in the popup window?  Seems to me I remember reading someplace about skinning popups and such, but hopefully there is a better way.  I have searched the forum and haven???t found a solution yet, so if I missed it please enlighten me.

I have attached an image to describe what I am talking about.

[ATTACH=CONFIG]11213[/ATTACH]

Thanks all, and happy new year!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Frank,

   Wow, OK so now I see why this is happening. You can fix the truncated form item label by adjusting the formItem label width but this would affect all the fields, and would probably look just as bad. Your best best and cleanest solution is to use the description tag, that way you can define the breaks and get you whole (very long field aliases).

<?xml version="1.0" ?> <!-- File Created with mkPopup.py by Frank Roberts - froberts@innovateteam.com --> <configuration> <!-- Add field name with curly brackets for the title -->     <title>Occupant Form</title>     <description>         <![CDATA[<b>1. When was home built: {UDF9}<br>2. When was last remodeling: {UDF11}<br>3. How long has the tenancy been: {UDF13}<br>4. Do you know property boundaries: {UDF15}<br>5. Boundaries identified by landmarks: {UDF17}<br>6. etc... etc...]]>     </description>     <fields>         <field name="UDF9" />         <field name="UDF11" />         <field name="UDF13" />         <field name="UDF15" />         <field name="UDF17" />         <field name="UDF19" alias="6.Who owns the fence?" />         <field name="UDF21" alias="7.Check box if deed available to be copied" />         <field name="UDF23" alias="8a.Check box if there are deed restrictions" />         <field name="UDF27" alias="9.What underground utilities are there?" />         <field name="UDF29" alias="10.Where are underground sprinklers?" />         <field name="UDF31" alias="11.How are sprinkers turned on/off?" />         <field name="UDF33" alias="12.Utilities shared with adjacent properties?" />         <field name="UDF35" alias="13.Impact on adjacent property if turned off?" />         <field name="UDF37" alias="14.Any underground electrical wiring?" />         <field name="UDF41" alias="16.Check if devices can be turned on/off" />         <field name="UDF43" alias="17.Other environmental issues?" />         <field name="UDF45" alias="18.Where are existing downspouts?" />         <field name="UDF47" alias="19.Are the drains clear?" />         <field name="UDF49" alias="20a.How is the drainage?" />         <field name="UDF51" alias="20b.Are there areas where water puddles?" />         <field name="UDF53" alias="21.Current drainage problems?" />         <field name="UDF55" alias="22a.Check box if there are exterior drains on property" />         <field name="UDF57" alias="22b.Where are exterior drains on property?" />         <field name="UDF59" alias="23.When to schedule remediation?" />         <field name="UDF61" alias="24.Who will inform neighbors?" />         <field name="UDF63" alias="25.Work hours ok with neighbors?" />         <field name="UDF65" alias="26.Check box if neighbor pets on the lot" />         <field name="UDF67" alias="27.Check box if neighbor children on the lot" />         <field name="UDF2" alias="28.Check box if neighbor vehicles near property" />         <field name="UDF4" alias="29.Check box if neighbor willing to move vehicle" />         <field name="UDF6" alias="30.Check box if pets/animals on property" />         <field name="UDF8" alias="31.What kind/ how many pets?" />         <field name="UDF10" alias="32.Check box if pets can be kept indoors" />         <field name="UDF12" alias="33.Check box if pets can be relocated" />         <field name="UDF14" alias="34.Check box if wildlife/strays on lot" />         <field name="UDF16" alias="35.Yard items blocking remediation?" />         <field name="UDF18" alias="36.Check box if ok to use water hose" />         <field name="UDF20" alias="37.Check box if trash to be removed in advance" />         <field name="UDF22" alias="38.Check box if aware of one-time pickup by city" />         <field name="UDF24" alias="39.How to access work site?" />         <field name="UDF26" alias="40.Where to stage work materials?" />         <field name="UDF28" alias="41.Where to place disposal container?" />         <field name="UDF30" alias="42.Obstacles to parking Port-o-let?" />         <field name="UDF32" alias="43.Best place to park Port-o-let?" />         <field name="UDF34" alias="44.Where to park resident vehicles?" />         <field name="UDF36" alias="45.Any signage restrictions?" />         <field name="UDF38" alias="46a.Check box if intend to move plants" />         <field name="UDF40" alias="46b.Which plants to be moved?" />         <field name="UDF42" alias="47.Should we provide buckets?" />         <field name="UDF44" alias="48.Location of immovable structures" />         <field name="UDF46" alias="49.Location of mature trees" />         <field name="UDF48" alias="50.Are you willing to water new sod?" />         <field name="UDF50" alias="51.Any special concerns?" />         <field name="UDF52" alias="Landscaping Selected" />         <field name="UDF54" alias="Check box if resident will help" />         <field name="UDF56" alias="Help Notes" />         <field name="UDF58" alias="Briefing Notes or Why Owner Refused" />         <field name="UDF60" alias="Cleaning Notes" />         <field name="UDF62" alias="Preferred Work Time" />         <field name="UDF64" alias="Comments" />         <field name="UDF66" alias="Sq Ft Running Total" />         <field name="UDF68" alias="Pre-remediation Lead Level (PPM)" />         <field name="UDF69" alias="Project Status" />     </fields>     <!-- Show attachments = either true or false -->     <showattachments>false</showattachments> </configuration>

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Frank,

   What does your xml for your popup look like?
0 Kudos
FrankRoberts
Occasional Contributor III
The following is a popup.xml:

<?xml version="1.0" ?>
<!-- File Created with mkPopup.py by Frank Roberts - froberts@innovateteam.com -->
<configuration>
<!-- Add field name with curly brackets for the title -->
    <title>Occupant Form</title>
    <fields>
        <field name="UDF9" alias="1.When was home built" visible="true"/>
        <field name="UDF11" alias="2.When was last remodeling" visible="true"/>
        <field name="UDF13" alias="3.How long has the tenancy been?" visible="true"/>
        <field name="UDF15" alias="4.Do you know property boundaries?" visible="true"/>
        <field name="UDF17" alias="5.Boundaries identified by landmarks?" visible="true"/>
        <field name="UDF19" alias="6.Who owns the fence?" visible="true"/>
        <field name="UDF21" alias="7.Check box if deed available to be copied" visible="true"/>
        <field name="UDF23" alias="8a.Check box if there are deed restrictions" visible="true"/>
        <field name="UDF27" alias="9.What underground utilities are there?" visible="true"/>
        <field name="UDF29" alias="10.Where are underground sprinklers?" visible="true"/>
        <field name="UDF31" alias="11.How are sprinkers turned on/off?" visible="true"/>
        <field name="UDF33" alias="12.Utilities shared with adjacent properties?" visible="true"/>
        <field name="UDF35" alias="13.Impact on adjacent property if turned off?" visible="true"/>
        <field name="UDF37" alias="14.Any underground electrical wiring?" visible="true"/>
        <field name="UDF41" alias="16.Check if devices can be turned on/off" visible="true"/>
        <field name="UDF43" alias="17.Other environmental issues?" visible="true"/>
        <field name="UDF45" alias="18.Where are existing downspouts?" visible="true"/>
        <field name="UDF47" alias="19.Are the drains clear?" visible="true"/>
        <field name="UDF49" alias="20a.How is the drainage?" visible="true"/>
        <field name="UDF51" alias="20b.Are there areas where water puddles?" visible="true"/>
        <field name="UDF53" alias="21.Current drainage problems?" visible="true"/>
        <field name="UDF55" alias="22a.Check box if there are exterior drains on property" visible="true"/>
        <field name="UDF57" alias="22b.Where are exterior drains on property?" visible="true"/>
        <field name="UDF59" alias="23.When to schedule remediation?" visible="true"/>
        <field name="UDF61" alias="24.Who will inform neighbors?" visible="true"/>
        <field name="UDF63" alias="25.Work hours ok with neighbors?" visible="true"/>
        <field name="UDF65" alias="26.Check box if neighbor pets on the lot" visible="true"/>
        <field name="UDF67" alias="27.Check box if neighbor children on the lot" visible="true"/>
        <field name="UDF2" alias="28.Check box if neighbor vehicles near property" visible="true"/>
        <field name="UDF4" alias="29.Check box if neighbor willing to move vehicle" visible="true"/>
        <field name="UDF6" alias="30.Check box if pets/animals on property" visible="true"/>
        <field name="UDF8" alias="31.What kind/ how many pets?" visible="true"/>
        <field name="UDF10" alias="32.Check box if pets can be kept indoors" visible="true"/>
        <field name="UDF12" alias="33.Check box if pets can be relocated" visible="true"/>
        <field name="UDF14" alias="34.Check box if wildlife/strays on lot" visible="true"/>
        <field name="UDF16" alias="35.Yard items blocking remediation?" visible="true"/>
        <field name="UDF18" alias="36.Check box if ok to use water hose" visible="true"/>
        <field name="UDF20" alias="37.Check box if trash to be removed in advance" visible="true"/>
        <field name="UDF22" alias="38.Check box if aware of one-time pickup by city" visible="true"/>
        <field name="UDF24" alias="39.How to access work site?" visible="true"/>
        <field name="UDF26" alias="40.Where to stage work materials?" visible="true"/>
        <field name="UDF28" alias="41.Where to place disposal container?" visible="true"/>
        <field name="UDF30" alias="42.Obstacles to parking Port-o-let?" visible="true"/>
        <field name="UDF32" alias="43.Best place to park Port-o-let?" visible="true"/>
        <field name="UDF34" alias="44.Where to park resident vehicles?" visible="true"/>
        <field name="UDF36" alias="45.Any signage restrictions?" visible="true"/>
        <field name="UDF38" alias="46a.Check box if intend to move plants" visible="true"/>
        <field name="UDF40" alias="46b.Which plants to be moved?" visible="true"/>
        <field name="UDF42" alias="47.Should we provide buckets?" visible="true"/>
        <field name="UDF44" alias="48.Location of immovable structures" visible="true"/>
        <field name="UDF46" alias="49.Location of mature trees" visible="true"/>
        <field name="UDF48" alias="50.Are you willing to water new sod?" visible="true"/>
        <field name="UDF50" alias="51.Any special concerns?" visible="true"/>
        <field name="UDF52" alias="Landscaping Selected" visible="true"/>
        <field name="UDF54" alias="Check box if resident will help" visible="true"/>
        <field name="UDF56" alias="Help Notes" visible="true"/>
        <field name="UDF58" alias="Briefing Notes or Why Owner Refused" visible="true"/>
        <field name="UDF60" alias="Cleaning Notes" visible="true"/>
        <field name="UDF62" alias="Preferred Work Time" visible="true"/>
        <field name="UDF64" alias="Comments" visible="true"/>
        <field name="UDF66" alias="Sq Ft Running Total" visible="true"/>
        <field name="UDF68" alias="Pre-remediation Lead Level (PPM)" visible="true"/>
        <field name="UDF69" alias="Project Status" visible="true"/>
    </fields>
    <!-- Show attachments = either true or false -->
    <showattachments>false</showattachments>
</configuration>




0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Frank,

   Wow, OK so now I see why this is happening. You can fix the truncated form item label by adjusting the formItem label width but this would affect all the fields, and would probably look just as bad. Your best best and cleanest solution is to use the description tag, that way you can define the breaks and get you whole (very long field aliases).

<?xml version="1.0" ?> <!-- File Created with mkPopup.py by Frank Roberts - froberts@innovateteam.com --> <configuration> <!-- Add field name with curly brackets for the title -->     <title>Occupant Form</title>     <description>         <![CDATA[<b>1. When was home built: {UDF9}<br>2. When was last remodeling: {UDF11}<br>3. How long has the tenancy been: {UDF13}<br>4. Do you know property boundaries: {UDF15}<br>5. Boundaries identified by landmarks: {UDF17}<br>6. etc... etc...]]>     </description>     <fields>         <field name="UDF9" />         <field name="UDF11" />         <field name="UDF13" />         <field name="UDF15" />         <field name="UDF17" />         <field name="UDF19" alias="6.Who owns the fence?" />         <field name="UDF21" alias="7.Check box if deed available to be copied" />         <field name="UDF23" alias="8a.Check box if there are deed restrictions" />         <field name="UDF27" alias="9.What underground utilities are there?" />         <field name="UDF29" alias="10.Where are underground sprinklers?" />         <field name="UDF31" alias="11.How are sprinkers turned on/off?" />         <field name="UDF33" alias="12.Utilities shared with adjacent properties?" />         <field name="UDF35" alias="13.Impact on adjacent property if turned off?" />         <field name="UDF37" alias="14.Any underground electrical wiring?" />         <field name="UDF41" alias="16.Check if devices can be turned on/off" />         <field name="UDF43" alias="17.Other environmental issues?" />         <field name="UDF45" alias="18.Where are existing downspouts?" />         <field name="UDF47" alias="19.Are the drains clear?" />         <field name="UDF49" alias="20a.How is the drainage?" />         <field name="UDF51" alias="20b.Are there areas where water puddles?" />         <field name="UDF53" alias="21.Current drainage problems?" />         <field name="UDF55" alias="22a.Check box if there are exterior drains on property" />         <field name="UDF57" alias="22b.Where are exterior drains on property?" />         <field name="UDF59" alias="23.When to schedule remediation?" />         <field name="UDF61" alias="24.Who will inform neighbors?" />         <field name="UDF63" alias="25.Work hours ok with neighbors?" />         <field name="UDF65" alias="26.Check box if neighbor pets on the lot" />         <field name="UDF67" alias="27.Check box if neighbor children on the lot" />         <field name="UDF2" alias="28.Check box if neighbor vehicles near property" />         <field name="UDF4" alias="29.Check box if neighbor willing to move vehicle" />         <field name="UDF6" alias="30.Check box if pets/animals on property" />         <field name="UDF8" alias="31.What kind/ how many pets?" />         <field name="UDF10" alias="32.Check box if pets can be kept indoors" />         <field name="UDF12" alias="33.Check box if pets can be relocated" />         <field name="UDF14" alias="34.Check box if wildlife/strays on lot" />         <field name="UDF16" alias="35.Yard items blocking remediation?" />         <field name="UDF18" alias="36.Check box if ok to use water hose" />         <field name="UDF20" alias="37.Check box if trash to be removed in advance" />         <field name="UDF22" alias="38.Check box if aware of one-time pickup by city" />         <field name="UDF24" alias="39.How to access work site?" />         <field name="UDF26" alias="40.Where to stage work materials?" />         <field name="UDF28" alias="41.Where to place disposal container?" />         <field name="UDF30" alias="42.Obstacles to parking Port-o-let?" />         <field name="UDF32" alias="43.Best place to park Port-o-let?" />         <field name="UDF34" alias="44.Where to park resident vehicles?" />         <field name="UDF36" alias="45.Any signage restrictions?" />         <field name="UDF38" alias="46a.Check box if intend to move plants" />         <field name="UDF40" alias="46b.Which plants to be moved?" />         <field name="UDF42" alias="47.Should we provide buckets?" />         <field name="UDF44" alias="48.Location of immovable structures" />         <field name="UDF46" alias="49.Location of mature trees" />         <field name="UDF48" alias="50.Are you willing to water new sod?" />         <field name="UDF50" alias="51.Any special concerns?" />         <field name="UDF52" alias="Landscaping Selected" />         <field name="UDF54" alias="Check box if resident will help" />         <field name="UDF56" alias="Help Notes" />         <field name="UDF58" alias="Briefing Notes or Why Owner Refused" />         <field name="UDF60" alias="Cleaning Notes" />         <field name="UDF62" alias="Preferred Work Time" />         <field name="UDF64" alias="Comments" />         <field name="UDF66" alias="Sq Ft Running Total" />         <field name="UDF68" alias="Pre-remediation Lead Level (PPM)" />         <field name="UDF69" alias="Project Status" />     </fields>     <!-- Show attachments = either true or false -->     <showattachments>false</showattachments> </configuration>
0 Kudos
FrankRoberts
Occasional Contributor III
Thanks Robert!, sure would be nice if there was just a way to turn the line wrapping on for the descriptions.  But I guess I can write more pythhon code to spit out xml files....

Have a good year!
Frank
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Frank,

   Glad to help. Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos
FrankRoberts
Occasional Contributor III
Thanks Robert!

I have worked up some python code to automate the creation of the popup xml files into both the orginal format and into the description area of the xml as you pointed out here.   The following is the link to it on ArcGIS.com:

http://www.arcgis.com/home/item.html?id=6cef5fa8b15a4811b1575138b1ca604d

Hope it helps someone else!
0 Kudos