Report Details
Request information about a report, including the parameters the report requires to be executed.
Only available to hosted SaaS clients
HTTP Request
GET /icweb.dll/report/{key}
URI Parameters
Name |
In |
Required |
Type |
Description |
Default |
|
Path |
Yes |
Integer |
Key associated with report. |
Responses
Name |
Type |
Description |
200 OK |
OK |
|
404 Not Found |
String |
Dashboard identified by key was not found. |
Report
Contains the information associated with a report.
Name |
Type |
Description |
Optional |
|
string |
Name of the report |
No |
|
Parameter [] |
List of parameters that the report requires. |
No |
|
Defines the elements in the report that can be excluded from being generated |
Yes |
Parameter
Specifies a parameter for a report, a report may have 0 or more parameters, these parameters contain information on allowing the user to select or enter an appropriate value.
Name |
Type |
Description |
Optional |
Default |
|
string |
Name of the parameter. |
No |
|
|
string |
Display caption used when displaying the parameter to the user for them to enter/select a value. |
No |
|
|
integer |
Display order of the parameter. |
No |
|
|
integer |
The number of display columns that this column consumes, report parameters should be displayed in a 2 column form. |
No |
1 |
|
string |
Text that can be used, in a greyed-out embedded in the control for the parameter. |
Yes |
|
|
Integer |
Field Type of the parameter, determines what data can be entered by the user. |
No |
|
|
Integer |
Editor that should be used for the parameter. |
No |
|
|
Integer |
If this is a foreign key, then this specifies the table that should be used to provide a selection dialog. |
Yes |
|
|
Boolean |
Does this parameter allow multiple values to be selected. |
No |
No |
|
Integer |
Specifies the key of the lookup list to use, if |
No |
No |
|
Boolean |
Is a value required to be provided for this report parameter. |
No |
True |
|
Any |
Contains the previously selected value from the last time this report was executed. |
Yes |
Null |
Excludable
Specifies a report element that may be excluded and defines children that may also be excluded.
Name |
Type |
Description |
Optional |
Default |
|
string |
Name of the report element. |
No |
|
|
string |
Description of the report element. |
No |
|
|
bool |
True if the element can be excluded from the report |
No |
|
|
integer |
Key associated with the element, when excluding elements from a report job, this key should be specified. |
No |
|
|
Excludable [] |
List of child elements that may be excluded. |
Yes |
Example
Retrieve the name and parameters for the report identified by the key of 3
Request
GET /icweb.dll/report/3
Response
{
"name": "Test Report",
"parameters": [{
"parameterName": "Component_ID",
"displayName": "Asset",
"order": 0,
"columns": 1,
"fieldType": 3,
"editorType": 13,
"foreignTable": "Component",
"multiSelect": true,
"previousValue": 2
}, {
"parameterName": "Workpack_ID",
"displayName": "Workpack",
"order": 0,
"columns": 1,
"fieldType": 3,
"editorType": 13,
"foreignTable": "Workpack",
}
],
"excludable": {
"name": "Test Report",
"canExclude": false,
"key": 9,
"elements": [{
"name": "Repeat Assets",
"canExclude": false,
"key": 10,
"elements": [{
"name": "Tasks",
"canExclude": true,
"key": 11,
"elements": []
}
]
}
]
}
}
Report
Submit a job to generate a report template.
Only available to hosted SaaS clients
HTTP Request
POST /icweb.dll/report/
URI Parameters
Name |
In |
Required |
Type |
Description |
Default |
|
Body |
Yes |
Integer |
Key associated with report. |
|
|
Body |
No |
String |
Format that the report should be generated in, JSON, html, xlsx, rtf are accepted types. |
JSON |
|
Body |
No |
Integer |
Contains a list of groups (obtained from Excludable) to exclude from report generation. |
|
|
Body |
No |
String |
List of comma separated email address to send the report to, if omitted then the report isn’t emailed and is available for download. |
|
|
Body |
No |
Boolean |
If |
False |
|
Body |
No |
String |
Subject used in the email generated if the report is sent to |
|
|
Body |
No |
JSON |
A JSON object of all the parameter values used in the report. |
Responses
Name |
Type |
Description |
200 OK |
Report job created, response contains information on the job. |
|
400 |
Validation Error |
Configuration provided for report is invalid, further information on what part was invalid is provided. |
404 |
Not found |
The specified |
Example
Ask the server to generate the report identified by the key of 3
, using the values of the passed parameters
Request
POST /icweb.dll/report
{
"reportTemplate": 3,
"outputType": "html"
"parameters": [{
"parameterName": "Component_ID",
"value": [4, 3]
}, {
"parameterName": "Workpack_ID",
"value": 35
}
]
}
Response
{
"id": "{7945AE0D-BB7D-4D7C-AF68-175C74CF02D5}",
"percentComplete": 0
}