This method returns full content of a specified folder, excluding booklets and shortcuts.
A typical syntax for this method is shown. Note that the exact syntax to use depends on the type of protocol used to communicate with the web service.
DataSet GetReportsByFolderName (
string sessionID,
string folder)
|
Name |
Type |
Description |
|---|---|---|
|
sessionID |
string |
Current session ID to perform authentication check. |
|
foldername |
string |
Contains folder name. |
Returns a dataset in the following format:
Table name: tblreports
|
Field Name |
Type |
Description |
|---|---|---|
|
item_id |
Long |
ID to perform authentication check. |
|
item_name |
String |
Name of the report. |
|
user_id |
Long |
ID of User that owns the report. |
|
folder_id |
Long |
ID of the folder that the report is located in. |
|
folder_name |
String |
Name of the folder that the report is located in. |
|
item_description |
String |
Report description. |
|
item_type |
String |
Item type (report). |
|
report_type |
String |
Report type (normal, compound, group, booklet, free-form). |
|
is_executable |
boolean |
Shows if report is executable. |
|
modify_date |
Date |
Last modify date. |
|
schedule_id |
Long |
ID of schedule. |
If any errors occur, web service will log and throw the InsightWebServiceException error.
|
Error Name |
Description |
|---|---|
|
AUTH_ERROR |
Authentication failed. |
|
NO_USER_PERMISSION |
User does not have permission to view reports. |
|
FOLDER_NOT_EXIST |
Specified folder does not exist. |
|
OE_ILLEGAL_PARAMETER |
Specified parameter is not valid. |
All parameters are mandatory.
Possible scenarios to generate request report data:
|
Request |
Result |
|---|---|
|
Call method without permission to view reports |
Throws error NO_USER_PERMISSION. |
|
Call method only with SessionID |
Default filter data is applied (All reports types in my reports). |
|
FolderID = 0 |
Returns all reports that exist in root folder only. |
|
FolderID = 0 Subfolders = 1 |
Returns all reports in all folders. |
|
FolderID = 0 FolderName = “FolderName" |
Returns all reports that exist in root folder only. Folder name is not relevant. |
|
FolderName = “FolderName” |
Returns all reports that exist in folder by name “FolderName”. |
|
Specify invalid FolderID or FolderName |
Throws error OE_FOLDER_NOT_EXIST. |
| Copyright © 2012 CA. Tutti i diritti riservati. | Contatta CA Technologies |