Difference between revisions of "XML Section Builder"
From SmartWiki
Line 9: | Line 9: | ||
* Node names must not contain spaces. | * Node names must not contain spaces. | ||
* CSS classes specified can either be the system defined classes, or you can create your own CSS classes and include them in the <style> tag on the Template | * CSS classes specified can either be the system defined classes, or you can create your own CSS classes and include them in the <style> tag on the Template | ||
+ | * The formula can refer to other cells within the section using the following syntax: | ||
+ | * <font size="2">'''[row#,column#]'''</font> | ||
+ | Example | ||
+ | [1,1]+[1,2] | ||
* The formula can refer to fields in other sections using the following syntax: | * The formula can refer to fields in other sections using the following syntax: | ||
* <font size="2">'''[@section.'''''yoursectionname'''''.id@_'''''rowname_colname''''']'''</font> | * <font size="2">'''[@section.'''''yoursectionname'''''.id@_'''''rowname_colname''''']'''</font> | ||
− | + | Example: | |
+ | =[@section.InternalFunding.id@_Total_Amount]/[@section.TotalFunding.id@_Total_Amount]*100 | ||
==Template== | ==Template== |
Revision as of 16:28, 20 January 2012
The XML Section Builder can be used to create XML templates without knowing advanced HTML or XML.
To enable:
- Select the Enable Builder checkbox on the custom field settings page and click Save.
- Click the Section Builder button at the top of the page to enter the builder.
Builder
- Node names must not contain spaces.
- CSS classes specified can either be the system defined classes, or you can create your own CSS classes and include them in the <style> tag on the Template
- The formula can refer to other cells within the section using the following syntax:
- [row#,column#]
Example
[1,1]+[1,2]
- The formula can refer to fields in other sections using the following syntax:
- [@section.yoursectionname.id@_rowname_colname]
Example:
=[@section.InternalFunding.id@_Total_Amount]/[@section.TotalFunding.id@_Total_Amount]*100
Template
Within the XML Field template you can pull the sections you have created using the following syntax:
- @section.sectionname@
Example
<table> <tr><td>Revenue</td></tr> <tr><td>@section.Revenue@</td></tr> <tr><td><br>Expenses</td></tr> <tr><td>@section.Expenses@</td></tr> </table>