Re: configuring pop-ups in 3.0:
I'm under the impression that it's best to choose to configure the pop-up using either:
1) the Application Builder via the <description> tag -- I like this option because I can format my text using the HTML tags, OR
2) the XML <configuration> -- I like this option because I can use numeric and date formatting tags on FIELD values.
I cannot see examples of how to either:
1) format date or number FIELDS within the <description> tag, OR
2) format non-field text without the <description> tag
Following an example here, I can create the pop-up via the XML file, using <description> and <field> tags, like this:
BUT, if I then view the code inside the Application Builder, all my field formatting gets deleted from the XML (everything below </description>)... this seems risky since I move between App Builder and configuration files.
It seems safer to choose either <description> or <configuration>, rather than mixing the two, but I don't know how to do all the formatting I need using either option.
Any advice is welcome.
Oh, and my pop-up doesn't seem complicated, I need to be able to do these things:
Name: Green Acres (bold/italics formatting on the left-hand column names)
Acres: 2,550 (bold/italics formatting, and the FIELD needs precision and thousandsseparator formatting on its value)
Date Protected: 2/3/2010 (bold/italics formatting, and the FIELD needs date formatting on its value)
I'm under the impression that it's best to choose to configure the pop-up using either:
1) the Application Builder via the <description> tag -- I like this option because I can format my text using the HTML tags, OR
2) the XML <configuration> -- I like this option because I can use numeric and date formatting tags on FIELD values.
I cannot see examples of how to either:
1) format date or number FIELDS within the <description> tag, OR
2) format non-field text without the <description> tag
Following an example here, I can create the pop-up via the XML file, using <description> and <field> tags, like this:
Code:
<configuration>
<title>Prioritized Tracts</title>
<description><![CDATA[
<br><i><b>Name:</b></i> {TRACTNAME}
<br><i><b>GIS Acres:</b></i> {GIS_ACRES}
<br><i><b>Salesforce:</b></i> <a href="{SALESFORCE_URL}"> (Link) </a><br>]]></description>
<fields>
<field name = "GIS_ACRES">
<format usethousandsseparator="true"/>
<format precision="0"/>
</field>
</fields>
</configuration>
It seems safer to choose either <description> or <configuration>, rather than mixing the two, but I don't know how to do all the formatting I need using either option.
Any advice is welcome.
Oh, and my pop-up doesn't seem complicated, I need to be able to do these things:
Name: Green Acres (bold/italics formatting on the left-hand column names)
Acres: 2,550 (bold/italics formatting, and the FIELD needs precision and thousandsseparator formatting on its value)
Date Protected: 2/3/2010 (bold/italics formatting, and the FIELD needs date formatting on its value)