Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This section contains examples of templates for typical scenarios. Every example is given using one of the following data source objects:
manager
, an instance of the Manager
classmanagers
, an enumeration of instances of the Manager
classcontracts
, an enumeration of instances of the Contract
classclients
, an enumeration of instances of the Client
classThe Manager
, Contract
, and Client
classes are defined as follows.
public class Manager
{
public String getName() { ... }
public int getAge() { ... }
public byte[] getPhoto() { ... }
public Country getCountry() { ... }
public Iterable<Contract> getContracts() { ... }
...
}
public class Country
{
public String getName() { ... }
...
}
public class Contract
{
public Manager getManager() { ... }
public Client getClient() { ... }
public float getPrice() { ... }
public Date getDate() { ... }
...
}
public class Client
{
public String getName() { ... }
...
}
![]() |
Name: <<[manager.getName()]>> Age: <<[manager.getAge()]>> |
---|
![]() |
Name: John Smith Age: 37 |
---|
We provide support for the following clients: <<foreach [in clients]>><<[indexOf() != 0 ? ", " : ""]>><<[getName()]>><</foreach>>
We provide support for the following clients: A Company, B Ltd., C & D, E Corp., F & Partners, G & Co., H Group, I & Sons, J Ent.
We provide support for the following clients:
* <<foreach [in clients]>><<[getName()]>>
<</foreach>>
We provide support for the following clients:
* A Company
* B Ltd.
* C & D
* E Corp.
* F & Partners
* G & Co.
* H Group
* I & Sons
* J Ent.
We provide support for the following clients:
1. <<foreach [in clients]>><<[getName()]>>
<</foreach>>
We provide support for the following clients:
1. A Company
2. B Ltd.
3. C & D
4. E Corp.
5. F & Partners
6. G & Co.
7. H Group
8. I & Sons
9. J Ent.
We provide support for the following clients:
1. <<foreach [in clients]>><<if [IndexOf() % 2 == 0]>><<[Name]>> 2. <<else>><<[Name]>> <</if>><</foreach>> |
We provide support for the following clients:
1. A Company 2. B Ltd. 3. C & D 4. E Corp. 5. F & Partners 6. G & Co. 7. H Group 8. I & Sons 9. J Ent. |
<<foreach [in managers]>> ![]() <<[getName()]>> <</foreach>> |
---|
![]() John Smith ![]() Tony Anderson ![]() July James |
---|
Manager | Contract Price |
---|---|
|
|
|
|
Manager | Contract Price |
---|---|
John Smith | 2300000 |
Tony Anderson | 1200000 |
July James | 800000 |
Total: | 4300000 |
Manager | <<foreach [in managers] -horz>><<[getName()]>> | Total: |
Contract Price | <<[getContracts().sum( c => c.getPrice())]>><</foreach>> | <<[sum( m => m.getContracts().sum( c => c.getPrice()))]>> |
Manager | John Smith | Tony Anderson | July James | Total: |
---|---|---|---|---|
Contract Price | 2300000 | 1200000 | 800000 | 4300000 |
Template Example
<<var [total = 0.0]>> | |
Client | Total Contract Price |
<<foreach [in contracts]>><<[getClient().getName()]>> | <<var [total = total + getPrice()]>><<[total]>><</foreach>> |
Report Example
Client | Total Contract Price |
---|---|
A Company | 1200000 |
B Ltd. | 1950000 |
C & D | 2300000 |
E Corp. | 2950000 |
F & Partners | 3500000 |
G & Co. | 3850000 |
H Group | 4100000 |
I & Sons | 4200000 |
J Ent. | 4300000 |
Client | Contract Price |
<<foreach [in contracts]>><<if [getPrice() >= 1000000]>><<[getClient().getName()]>> | <<[getPrice()]>> |
<<else>><<[getClient().getName()]>> | <<[getPrice()]>><</if>><</foreach>> |
Total: | <<[sum(c => c.getPrice())]>> |
Client | Contract Price |
A Company | 1200000 |
B Ltd. | 750000 |
C & D | 350000 |
E Corp. | 650000 |
F & Partners | 550000 |
G & Co. | 350000 |
H Group | 250000 |
I & Sons | 100000 |
J Ent. | 100000 |
Total: | 4300000 |
Manager | <<foreach [in managers] -horz>><<if [getContracts().sum( c => c.getPrice()) >= 2000000] -horz>><<[getName()]>> | <<else>><<[getName()]>> | Total: |
Contract Price | <<[getContracts.sum( c => c.getPrice())]>> | <<[getContracts().sum( c => c.getPrice())]>><</if>><</foreach>> | <<[sum( m => m.getContracts().sum( c => c.getPrice()))]>> |
Manager | John Smith | Tony Anderson | July James | Total: |
Contract Price | 2300000 | 1200000 | 800000 | 4300000 |
Client | Contract Price |
<<if [!any()]>>No data | |
<<else>>< |
<<[getPrice()]>><</foreach>> |
Total: | <<[sum(c => c.getPrice())]>><</if>> |
Client | Contract Price |
No data |
Client | Contract Price |
---|---|
A Company | 1200000 |
B Ltd. | 750000 |
C & D | 350000 |
E Corp. | 650000 |
F & Partners | 550000 |
G & Co. | 350000 |
H Group | 250000 |
I & Sons | 100000 |
J Ent. | 100000 |
Total: | 4300000 |
Manager | <<if [!any()] -horz>>No data | <<else>><<foreach [in managers] -horz>><<[getName()]>> | Total: |
Contract Price | <<[getContracts().sum( c => c.getPrice())]>><</foreach>> | <<[sum( m => m.getContracts().sum( c => c.getPrice()))]>><</if>> |
Client | No data |
Contract Price |
Manager | John Smith | Tony Anderson | July James | Total: |
---|---|---|---|---|
Contract Price | 2300000 | 1200000 | 800000 | 4300000 |
<<foreach [in managers]>> ![]() <<[getName()]>> Clients: <<foreach [in getContracts() ]>><<[indexOf() != 0 ? “, " : “"]>><<[getClient().getName()]>><</foreach>> <</foreach>> |
---|
![]() John Smith Clients: A Company, B Ltd., C & D ![]() Tony Anderson Clients: E Corp., F & Partners ![]() July James Clients: G & Co., H Group, I & Sons, J Ent. |
---|
Manager/Client | Contract Price |
---|---|
|
|
|
|
|
|
Manager/Client | Contract Price |
---|---|
John Smith | 2300000 |
A Company | 1200000 |
B Ltd. | 750000 |
C & D | 350000 |
Tony Anderson | 1200000 |
E Corp. | 650000 |
F & Partners | 550000 |
July James | 800000 |
G & Co. | 350000 |
H Group | 250000 |
I & Sons | 100000 |
J Ent. | 100000 |
Total: | 4300000 |
Template Example
Initial Chart Series Data
Report Example
Template Example
Initial Chart Series Data
Report Example
Template Example
Initial Chart Series Data
Report Example
Template Example
Report Example
Template Example
Initial Chart Series Data
Report Example
Template Example
Initial Chart Series Data
Report Example
Template Example
Manager | Contract Price |
---|---|
|
|
Report Example
Manager | Contract Price |
---|---|
John Smith | 2300000 |
July James | 800000 |
Tony Anderson | 1200000 |
Template Example
Report Example
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.