Difference between revisions of "Document Template Classes"
From AgileApps Support Wiki
imported>Aeric (Created page with "This page is currently in progress...") |
imported>Aeric |
||
Line 1: | Line 1: | ||
This page is currently in progress... | This page is currently in progress... | ||
===About Print Template Classes=== | |||
As far as a [[Print Template]] is concerned, a data object is simply a HashMap in the [{{download}}/javadocs/com/platform/api/TenantContext.html TenantContext]. By manipulating the HashMap(s) it contains, you change the data that the Print Template has available for processing. | |||
:* Template reference: $''objectName''.''fieldname'' | |||
:* Retrieve a data object: TenantContext.get(''objectName'') | |||
:* Add or update a data object: TenantContext.put(''objectName'') | |||
:* Get a field from data object: | |||
:* Add or update a field in a data object: | |||
===Configuring the Print Template to Use the Method=== | |||
:--select the class, and the method to use | |||
:--only methods with the appropriate signature are listed: | |||
::* arguments: | |||
::* return value: | |||
===Example: Changing Field Data==== | |||
===Example: Adding a New Field=== | |||
===Example: Adding a New Object=== |
Revision as of 19:01, 5 April 2012
This page is currently in progress...
About Print Template Classes
As far as a Print Template is concerned, a data object is simply a HashMap in the [[[:Template:Download]]/javadocs/com/platform/api/TenantContext.html TenantContext]. By manipulating the HashMap(s) it contains, you change the data that the Print Template has available for processing.
- Template reference: $objectName.fieldname
- Retrieve a data object: TenantContext.get(objectName)
- Add or update a data object: TenantContext.put(objectName)
- Get a field from data object:
- Add or update a field in a data object:
Configuring the Print Template to Use the Method
- --select the class, and the method to use
- --only methods with the appropriate signature are listed:
- arguments:
- return value: