...
This helps you to render a very custom outputs, as for each record rendering you have a shared Velocity Context. Below is an example that renders a custom html table for you
...
...
ConfiForms Form Definition | ||
---|---|---|
| ||
ConfiForms TableView | ||
---|---|---|
| ||
ConfiForms PlainView | ||||||
---|---|---|---|---|---|---|
| ||||||
#if(!${headerRendered})
<tr><th>Field 1</th><th>Field 2</th></tr>
#set($headerRendered = true)
#end
<tr><td>[entry.field1.escapeXml]</td><td>[entry.field2]</td></tr> |
Here is how the PlainView is configured
We selected to render it as a table
Set the macro to
And placed Velocity template inside it's body. Basically rendering header only once, when "headerRendered" is not set/present
Code Block |
---|
#if(!${headerRendered})
<tr><th>Field 1</th><th>Field 2</th></tr>
#set($headerRendered = true)
#end
<tr><td>[entry.field1.escapeXml]</td><td>[entry.field2]</td></tr> |
...