Build a Generic Report¶
- Save as draft the report with name, category and selected data sources
- Prepare an empty ReportDefinition object.
- Populate report name and categories.
- Populate selected data sources.
- Prepare a ReportSavingParameter object as API input.
- Call Save report as draft API, then receive back the ReportSavingResult object.
- Populate the draft with report parts
- Extract the
report
field from the ReportSavingResult object. This is a ReportDefinition object which has been assigned a report id. - Populate the report parts:
- Extract the
- Save the report
- Prepare a ReportSavingParameter object as API input.
- Call Save report API.
Prepare an Empty Report Object¶
- The highlighted
name
is where the report name will be inserted - The highlighted
categoryId
,category
,subCategoryId
andsubCategory
is where the categories and sub-categories will be updated - The highlighted
reportDataSource
is where the selected data source will be added
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | {
"name": "",
"type": 0,
"previewRecord": 10,
"advancedMode": true,
"allowNulls": false,
"isDistinct": false,
"categoryId": null,
"category": {
"id": null,
"name": "",
"type": 0,
"tenantId": null
},
"subCategory": {
"id": null,
"name": "",
"type": 0,
"tenantId": null
},
"subCategoryId": null,
"reportDataSource": [],
"reportRelationship": [],
"reportFilter": {
"logic": "",
"visible": true,
"filterFields": [],
"id": null,
"reportId": null
},
"reportPart": [],
"header": {
"visible": false,
"items": [
{
"type": "image",
"label": "Image",
"id": "formatDetails_57",
"positionX": 0,
"positionY": 0,
"width": 6,
"height": 6,
"name": "Logo Image",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"imageUrl": "http://",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_58",
"positionX": 20,
"positionY": 0,
"width": 12,
"height": 2,
"name": "Report Name",
"value": "{reportName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "thinHorizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_59",
"positionX": 20,
"positionY": 4,
"width": 12,
"height": 1,
"name": "Upper Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 2
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_60",
"positionX": 20,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Report Generated",
"value": "Report Generated:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_61",
"positionX": 20,
"positionY": 7,
"width": 6,
"height": 2,
"name": "User",
"value": "User:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_62",
"positionX": 20,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant",
"value": "Tenant:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "dateTime",
"label": "Date Time",
"id": "formatDetails_63",
"positionX": 26,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Current Date Time",
"value": "{currentDateTime}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_64",
"positionX": 26,
"positionY": 7,
"width": 6,
"height": 2,
"name": "Current User Name",
"value": "{currentUserName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_65",
"positionX": 26,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant Name",
"value": "{tenantName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_66",
"positionX": 0,
"positionY": 11,
"width": 32,
"height": 1,
"name": "Lower Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
}
]
},
"footer": {
"visible": false,
"items": [
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_67",
"positionX": 0,
"positionY": 0,
"width": 32,
"height": 1,
"name": "Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_68",
"positionX": 0,
"positionY": 1,
"width": 10,
"height": 2,
"name": "Footer Text",
"value": "Footer Text",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_69",
"positionX": 20,
"positionY": 1,
"width": 4,
"height": 2,
"name": "Page",
"value": "Page",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "pageNumber",
"label": "Page Number",
"id": "formatDetails_70",
"positionX": 24,
"positionY": 1,
"width": 8,
"height": 2,
"name": "Page Number",
"value": "{pageNumber}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"titleDescription": {
"visible": false,
"items": [
{
"type": "title",
"label": "Title",
"id": "formatDetails_71",
"name": "Title",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "description",
"label": "Description",
"id": "formatDetails_72",
"name": "Description",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"version": 0,
"schedules": [],
"ownerId": "",
"accesses": [],
"exportFormatSetting": {
"orientation": 0,
"margins": 0,
"centerOnPage": {
"horizontally": false,
"vertically": false
},
"pageBreakAfterReportPart": false,
"marginSettings": [
{
"type": 0,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 1,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.25,
"rightValue": 0.25,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 2,
"topValue": 1,
"bottomValue": 1,
"leftValue": 1,
"rightValue": 1,
"headerValue": 0.5,
"footerValue": 0.5
},
{
"type": 3,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
}
]
},
"createdById": null,
"dynamicQuerySourceFields": [],
"snapToGrid": false,
"excludedRelationships": null
}
|
Populate Report Name and Categories¶
Populate the fields:
name
with the actual report namecategory
andsubCategory
with the actual categories
Get the list of categories from GET report/allCategories/{type}/(tenant_id)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"name": "Example Report Name",
"type": 0,
"previewRecord": 10,
"advancedMode": true,
"allowNulls": false,
"isDistinct": false,
"categoryId": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"category": {
"id": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"name": "TestCategory",
"type": 0,
"tenantId": null
},
"subCategory": {
"id": null,
"name": "",
"type": 0,
"tenantId": null
},
"subCategoryId": null,
"reportDataSource": [],
"reportRelationship": [],
"reportFilter": {
"logic": "",
"visible": true,
"filterFields": [],
"id": null,
"reportId": null
},
"reportPart": [],
"remaining_fields": "are omitted"
}
|
Populate selected data sources¶
Get the list of available data sources grouped by data source categories from POST report/loadDataSourceCategory with this payload:
{ "tenantId": null, "reportKey": { "key": null } }
For each selected data source (ReportQuerySource object), build a corresponding ReportDataSource object
{ "querySourceId": "<id of the selected ReportQuerySource>", "querySourceName": "<name of the selected ReportQuerySource>", "aliasId": "<querySourceId>_<querySourceName>", "selected": true, "categoryId": "00000000-0000-0000-0000-000000000000", "primaryFields": ["<populated by an array of only primary key fields>"] }
Sample ReportQuerySource
Sample ReportDataSource
{ "id": "af773c7b-878e-461b-9345-27ee6592db1a", "name": "Orders",
{ "querySourceId": "af773c7b-878e-461b-9345-27ee6592db1a", "querySourceName": "Orders", "aliasId": "af773c7b-878e-461b-9345-27ee6592db1a_Orders",
"selected": false,
"selected": true,
"categoryId": "00000000-0000-0000-0000-000000000000",
"fields": [
"primaryFields": [
{ "name": "OrderID", "alias": "", "dataType": "int", "izendaDataType": "Numeric", "allowDistinct": false, "visible": true, "filterable": true, "querySourceId": "00000000-0000-0000-0000-000000000000", "parentId": null, "expressionFields": [], "filteredValue": "", "type": 0, "groupPosition": 0, "position": 0, "extendedProperties": "{\"PrimaryKey\":true}", "physicalChange": 0, "approval": 0, "existed": false, "matchedTenant": false, "functionName": null, "expression": null, "fullName": null, "calculatedTree": null, "reportId": null, "originalName": "OrderID", "originalId": "00000000-0000-0000-0000-000000000000", "isParameter": false, "isCalculated": false, "hasAggregatedFunction": false, "querySource": null, "querySourceName": null, "categoryName": null, "inaccessible": false, "originalAlias": null, "fullPath": null, "id": "b648344c-526e-4984-bfc3-7be462b800fe", "state": 0, "deleted": false, "inserted": true, "version": null, "created": null, "createdBy": null, "modified": "0001-01-01T00:00:00.0000000+07:00", "modifiedBy": null },
{ "name": "OrderID", "alias": "", "dataType": "int", "izendaDataType": "Numeric", "allowDistinct": false, "visible": true, "filterable": true, "querySourceId": "00000000-0000-0000-0000-000000000000", "parentId": null, "expressionFields": [], "filteredValue": "", "type": 0, "groupPosition": 0, "position": 0, "extendedProperties": "{\"PrimaryKey\":true}", "physicalChange": 0, "approval": 0, "existed": false, "matchedTenant": false, "functionName": null, "expression": null, "fullName": null, "calculatedTree": null, "reportId": null, "originalName": "OrderID", "originalId": "00000000-0000-0000-0000-000000000000", "isParameter": false, "isCalculated": false, "hasAggregatedFunction": false, "querySource": null, "querySourceName": null, "categoryName": null, "inaccessible": false, "originalAlias": null, "fullPath": null, "id": "b648344c-526e-4984-bfc3-7be462b800fe", "state": 0, "deleted": false, "inserted": true, "version": null, "created": null, "createdBy": null, "modified": "0001-01-01T00:00:00.0000000+07:00", "modifiedBy": null }
] }
] }
Populate the field
reportDataSource
with the array of ReportDataSource objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | {
"name": "Example Report Name",
"type": 0,
"previewRecord": 10,
"advancedMode": true,
"allowNulls": false,
"isDistinct": false,
"categoryId": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"category": {
"id": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"name": "TestCategory",
"type": 0,
"tenantId": null
},
"subCategory": {
"id": null,
"name": "",
"type": 0,
"tenantId": null
},
"subCategoryId": null,
"reportDataSource": [
{
"querySourceId": "af773c7b-878e-461b-9345-27ee6592db1a",
"querySourceName": "Orders",
"aliasId": "af773c7b-878e-461b-9345-27ee6592db1a_Orders",
"selected": true,
"categoryId": "00000000-0000-0000-0000-000000000000",
"primaryFields": [
{
"name": "OrderID",
"alias": "",
"dataType": "int",
"izendaDataType": "Numeric",
"allowDistinct": false,
"visible": true,
"filterable": true,
"querySourceId": "00000000-0000-0000-0000-000000000000",
"parentId": null,
"expressionFields": [],
"filteredValue": "",
"type": 0,
"groupPosition": 0,
"position": 0,
"extendedProperties": "{\"PrimaryKey\":true}",
"physicalChange": 0,
"approval": 0,
"existed": false,
"matchedTenant": false,
"functionName": null,
"expression": null,
"fullName": null,
"calculatedTree": null,
"reportId": null,
"originalName": "OrderID",
"originalId": "00000000-0000-0000-0000-000000000000",
"isParameter": false,
"isCalculated": false,
"hasAggregatedFunction": false,
"querySource": null,
"querySourceName": null,
"categoryName": null,
"inaccessible": false,
"originalAlias": null,
"fullPath": null,
"id": "b648344c-526e-4984-bfc3-7be462b800fe",
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": null,
"modified": "0001-01-01T00:00:00.0000000+07:00",
"modifiedBy": null
}
]
}
],
"reportRelationship": [],
"reportFilter": {
"logic": "",
"visible": true,
"filterFields": [],
"id": null,
"reportId": null
},
"reportPart": [],
"remaining_fields": "are omitted"
}
|
Call Save report as draft API¶
- Prepare the ReportSavingParameter object
The highlighted report
is where the ReportDefinition object will be inserted
1 2 3 4 5 6 7 8 9 10 11 12 | {
"reportKey": {
"key": null,
"modified": null,
"tenantId": null
},
"section": 0,
"saveAs": false,
"ignoreCheckChange": false,
"report": {},
"expandedLevel": 0
}
|
- Populate the ReportSavingParameter object with the ReportDefinition then call the Save report as draft API
- Receive back the ReportSavingResult object
ReportSavingResult object with the success field true and report id assigned in reportKey.key
and report field populated:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | {
"reportKey": {
"key": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"tenantId": null
},
"report": {
"inaccessible": false,
"category": {
"name": "TestCategory",
"type": 0,
"parentId": null,
"tenantId": null,
"canDelete": false,
"editable": false,
"savable": false,
"subCategories": [],
"checked": false,
"reports": null,
"dashboards": null,
"id": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"subCategory": {
"name": "",
"type": 0,
"parentId": null,
"tenantId": null,
"canDelete": false,
"editable": false,
"savable": false,
"subCategories": [],
"checked": false,
"reports": null,
"dashboards": null,
"id": null,
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"reportRelationship": [],
"reportPart": [],
"reportFilter": {
"filterFields": [],
"logic": "",
"visible": true,
"reportId": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"id": "96bb6406-621d-4375-8cef-1ae9c31c5ac8",
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"calculatedFields": [],
"accesses": [],
"schedules": [],
"dynamicQuerySourceFields": [],
"name": "Example Report Name",
"reportDataSource": [
{
"reportId": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"querySourceId": "af773c7b-878e-461b-9345-27ee6592db1a",
"querySourceCategoryId": null,
"connectionId": null,
"selected": true,
"id": "3067c607-e143-47ed-8ab5-b6c3ad918f75",
"state": 1,
"deleted": false,
"inserted": false,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
}
],
"type": 0,
"previewRecord": 10,
"advancedMode": true,
"allowNulls": false,
"isDistinct": false,
"categoryId": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"categoryName": null,
"subCategoryId": null,
"subCategoryName": null,
"tenantId": null,
"tenantName": null,
"description": "",
"title": "",
"lastViewed": null,
"owner": "John Doe",
"ownerId": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"excludedRelationships": null,
"numberOfView": 0,
"renderingTime": 0,
"createdById": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"modifiedById": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"snapToGrid": false,
"usingFields": null,
"hasDeletedObjects": false,
"header": {
"visible": false,
"items": [
{
"type": "image",
"label": "Image",
"id": "formatDetails_57",
"positionX": 0,
"positionY": 0,
"width": 6,
"height": 6,
"name": "Logo Image",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"imageUrl": "http://",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_58",
"positionX": 20,
"positionY": 0,
"width": 12,
"height": 2,
"name": "Report Name",
"value": "{reportName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "thinHorizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_59",
"positionX": 20,
"positionY": 4,
"width": 12,
"height": 1,
"name": "Upper Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 2
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_60",
"positionX": 20,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Report Generated",
"value": "Report Generated:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_61",
"positionX": 20,
"positionY": 7,
"width": 6,
"height": 2,
"name": "User",
"value": "User:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_62",
"positionX": 20,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant",
"value": "Tenant:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "dateTime",
"label": "Date Time",
"id": "formatDetails_63",
"positionX": 26,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Current Date Time",
"value": "{currentDateTime}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_64",
"positionX": 26,
"positionY": 7,
"width": 6,
"height": 2,
"name": "Current User Name",
"value": "{currentUserName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_65",
"positionX": 26,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant Name",
"value": "{tenantName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_66",
"positionX": 0,
"positionY": 11,
"width": 32,
"height": 1,
"name": "Lower Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
}
]
},
"footer": {
"visible": false,
"items": [
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_67",
"positionX": 0,
"positionY": 0,
"width": 32,
"height": 1,
"name": "Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_68",
"positionX": 0,
"positionY": 1,
"width": 10,
"height": 2,
"name": "Footer Text",
"value": "Footer Text",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_69",
"positionX": 20,
"positionY": 1,
"width": 4,
"height": 2,
"name": "Page",
"value": "Page",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "pageNumber",
"label": "Page Number",
"id": "formatDetails_70",
"positionX": 24,
"positionY": 1,
"width": 8,
"height": 2,
"name": "Page Number",
"value": "{pageNumber}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"titleDescription": {
"visible": false,
"items": [
{
"type": "title",
"label": "Title",
"id": "formatDetails_71",
"name": "Title",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "description",
"label": "Description",
"id": "formatDetails_72",
"name": "Description",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"sourceId": null,
"checked": false,
"copyDashboard": false,
"exportFormatSetting": {
"orientation": 0,
"margins": 0,
"centerOnPage": {
"horizontally": false,
"vertically": false
},
"pageBreakAfterReportPart": false,
"marginSettings": [
{
"type": 3,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 0,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 1,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.25,
"rightValue": 0.25,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 2,
"topValue": 1,
"bottomValue": 1,
"leftValue": 1,
"rightValue": 1,
"headerValue": 0.5,
"footerValue": 0.5
}
]
},
"deletable": false,
"editable": false,
"movable": false,
"copyable": false,
"accessPriority": 0,
"active": false,
"id": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"state": 1,
"deleted": false,
"inserted": false,
"version": 0,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": "John Doe"
},
"success": true,
"messages": null,
"data": null
}
|
Populate the report parts¶
Extract the populated ReportDefinition from
report
field.Prepare the report part objects:
For each report part object, build a corresponding ReportPartDefinition object
- Highlighted
reportPartContent
is to be updated by the report part object - Highlighted
title
field is to be updated by the user-selected title
1 2 3 4 5 6 7 8
{ "reportPartContent": {}, "width": 12, "height": 4, "positionY": 0, "positionX": 0, "title": "Grid" }
- Highlighted
Update the
reportPart
field of the extracted ReportDefinition with the array of ReportPartDefinition objects. (example in the step below)
Call Save report API¶
- Prepare the ReportSavingParameter object and call Save report API similarly to Call Save report as draft API step.
reportKey.key
filled with the assigned idsection
= 2 (Fields) to save the report parts section onlyreport
extracted from Call Save report as draft API stepreport.reportPart
populated with the sample grid in Build a simple Grid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 | {
"reportKey": {
"key": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"modified": null,
"tenantId": null
},
"section": 2,
"saveAs": false,
"ignoreCheckChange": false,
"report": {
"inaccessible": false,
"category": {
"name": "TestCategory",
"type": 0,
"parentId": null,
"tenantId": null,
"canDelete": false,
"editable": false,
"savable": false,
"subCategories": [],
"checked": false,
"reports": null,
"dashboards": null,
"id": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"subCategory": {
"name": "",
"type": 0,
"parentId": null,
"tenantId": null,
"canDelete": false,
"editable": false,
"savable": false,
"subCategories": [],
"checked": false,
"reports": null,
"dashboards": null,
"id": null,
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"reportRelationship": [],
"reportPart": [
{
"reportPartContent": {
"type": 3,
"columns": {
"elements": [
{
"name": "OrderID",
"position": 1,
"field": {
"fieldId": "b648344c-526e-4984-bfc3-7be462b800fe",
"fieldName": "OrderID",
"fieldNameAlias": "OID",
"dataFieldType": "Numeric",
"querySourceId": "af773c7b-878e-461b-9345-27ee6592db1a",
"querySourceType": "Table",
"sourceAlias": "Orders",
"schemaName": "dbo",
"querySourceName": "Orders",
"databaseName": "test",
"visible": true,
"relationshipId": null,
"calculatedTree": null,
"isCalculated": false,
"hasAggregatedFunction": false
},
"properties": {
"fieldItemVisible": true,
"dataFormattings": {
"function": "",
"functionInfo": {},
"format": {},
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "",
"backgroundColor": ""
},
"width": {
"value": null
},
"alignment": "alignLeft",
"sort": "ASC",
"color": {
"textColor": {
"rangePercent": null,
"rangeValue": null,
"value": null
},
"cellColor": {
"rangePercent": null,
"rangeValue": null,
"value": null
}
},
"alternativeText": {
"rangePercent": null,
"rangeValue": null,
"value": null
},
"customURL": {
"url": "",
"option": "LINK_NEW_WINDOW"
},
"embeddedJavascript": {
"script": ""
},
"subTotal": {
"label": "",
"function": "",
"expression": "",
"dataType": "",
"format": {},
"previewResult": ""
},
"grandTotal": {
"label": "",
"function": "",
"expression": "",
"dataType": "",
"format": {},
"previewResult": ""
}
},
"headerFormating": {
"font": {
"family": null,
"size": null,
"bold": null,
"italic": null,
"underline": null,
"color": null,
"backgroundColor": null
},
"alignment": null,
"wordWrap": null,
"columnGroup": ""
},
"drillDown": {
"subReport": {
"selectedReport": null,
"style": null,
"reportPartUsed": null,
"reportFilter": true,
"mappingFields": [],
"selectedIconValue": {
"icon": null,
"value": null
},
"viewSettingByLink": null
}
},
"otherProps": {}
},
"isDeleted": false,
"isSelected": false,
"offset": {}
}
],
"name": "columns"
},
"rows": {
"elements": [],
"name": "rows"
},
"values": {
"elements": [],
"name": "values"
},
"separators": {
"elements": [],
"name": "separators"
},
"properties": {
"generalInfo": {
"gridStyle": "Vertical",
"separatorStyle": "Comma"
},
"table": {
"border": {
"top": {},
"right": {},
"bottom": {},
"midVer": {},
"left": {},
"midHor": {}
},
"backgroundColor": "#fff"
},
"columns": {
"width": {
"value": 150
},
"alterBackgroundColor": false
},
"rows": {
"alterBackgroundColor": false
},
"headers": {
"font": {
"family": "Roboto",
"size": 14,
"bold": true,
"italic": false,
"underline": false,
"backgroundColor": "#E4E4E4"
},
"alignment": "left",
"wordWrap": false,
"removeHeaderForExport": false
},
"grouping": {
"useSeparator": true
},
"view": {
"dataRefreshInterval": {
"enable": false,
"updateInterval": 0,
"isAll": true,
"latestRecord": 0
},
"usePagination": true,
"pivotColumnsPerExportedPage": "",
"pageSize": 10
},
"printing": {
"usePageBreakAfterSeparator": false
}
},
"settings": {},
"title": {
"text": "",
"properties": {},
"settings": {
"font": {
"family": "",
"size": 14,
"bold": true,
"italic": false,
"underline": false,
"color": "",
"highlightColor": ""
},
"alignment": {
"alignment": ""
}
},
"elements": []
},
"description": {
"text": "",
"properties": {},
"settings": {
"font": {
"family": "",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "",
"highlightColor": ""
},
"alignment": {
"alignment": ""
}
},
"elements": []
}
},
"width": 0,
"height": 0,
"positionY": 0,
"positionX": 0,
"title": "Grid"
}
],
"reportFilter": {
"filterFields": [],
"logic": "",
"visible": true,
"reportId": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"id": "96bb6406-621d-4375-8cef-1ae9c31c5ac8",
"state": 0,
"deleted": false,
"inserted": true,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
},
"calculatedFields": [],
"accesses": [],
"schedules": [],
"dynamicQuerySourceFields": [],
"name": "Example Report Name",
"reportDataSource": [
{
"reportId": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"querySourceId": "af773c7b-878e-461b-9345-27ee6592db1a",
"querySourceCategoryId": null,
"connectionId": null,
"selected": true,
"id": "3067c607-e143-47ed-8ab5-b6c3ad918f75",
"state": 1,
"deleted": false,
"inserted": false,
"version": null,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": null
}
],
"type": 0,
"previewRecord": 10,
"advancedMode": true,
"allowNulls": false,
"isDistinct": false,
"categoryId": "0ecf1821-dc37-43dd-8b4c-654961b37038",
"categoryName": null,
"subCategoryId": null,
"subCategoryName": null,
"tenantId": null,
"tenantName": null,
"description": "",
"title": "",
"lastViewed": null,
"owner": "John Doe",
"ownerId": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"excludedRelationships": null,
"numberOfView": 0,
"renderingTime": 0,
"createdById": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"modifiedById": "9fc0f5c2-decf-4d65-9344-c59a1704ea0c",
"snapToGrid": false,
"usingFields": null,
"hasDeletedObjects": false,
"header": {
"visible": false,
"items": [
{
"type": "image",
"label": "Image",
"id": "formatDetails_57",
"positionX": 0,
"positionY": 0,
"width": 6,
"height": 6,
"name": "Logo Image",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"imageUrl": "http://",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_58",
"positionX": 20,
"positionY": 0,
"width": 12,
"height": 2,
"name": "Report Name",
"value": "{reportName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "thinHorizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_59",
"positionX": 20,
"positionY": 4,
"width": 12,
"height": 1,
"name": "Upper Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 2
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_60",
"positionX": 20,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Report Generated",
"value": "Report Generated:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_61",
"positionX": 20,
"positionY": 7,
"width": 6,
"height": 2,
"name": "User",
"value": "User:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_62",
"positionX": 20,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant",
"value": "Tenant:",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "dateTime",
"label": "Date Time",
"id": "formatDetails_63",
"positionX": 26,
"positionY": 5,
"width": 6,
"height": 2,
"name": "Current Date Time",
"value": "{currentDateTime}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_64",
"positionX": 26,
"positionY": 7,
"width": 6,
"height": 2,
"name": "Current User Name",
"value": "{currentUserName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_65",
"positionX": 26,
"positionY": 9,
"width": 6,
"height": 2,
"name": "Tenant Name",
"value": "{tenantName}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_66",
"positionX": 0,
"positionY": 11,
"width": 32,
"height": 1,
"name": "Lower Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
}
]
},
"footer": {
"visible": false,
"items": [
{
"type": "horizontalRule",
"label": "Horizontal Rule",
"id": "formatDetails_67",
"positionX": 0,
"positionY": 0,
"width": 32,
"height": 1,
"name": "Separator Line",
"value": "{horizontalRule}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 4
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_68",
"positionX": 0,
"positionY": 1,
"width": 10,
"height": 2,
"name": "Footer Text",
"value": "Footer Text",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "text",
"label": "Text",
"id": "formatDetails_69",
"positionX": 20,
"positionY": 1,
"width": 4,
"height": 2,
"name": "Page",
"value": "Page",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "pageNumber",
"label": "Page Number",
"id": "formatDetails_70",
"positionX": 24,
"positionY": 1,
"width": 8,
"height": 2,
"name": "Page Number",
"value": "{pageNumber}",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"titleDescription": {
"visible": false,
"items": [
{
"type": "title",
"label": "Title",
"id": "formatDetails_71",
"name": "Title",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
},
{
"type": "description",
"label": "Description",
"id": "formatDetails_72",
"name": "Description",
"value": "",
"font": {
"family": "Roboto",
"size": 14,
"bold": false,
"italic": false,
"underline": false,
"color": "#000",
"backgroundColor": "#fff"
},
"color": "#000",
"dashStyle": "solid",
"thickness": 1
}
]
},
"sourceId": null,
"checked": false,
"copyDashboard": false,
"exportFormatSetting": {
"orientation": 0,
"margins": 0,
"centerOnPage": {
"horizontally": false,
"vertically": false
},
"pageBreakAfterReportPart": false,
"marginSettings": [
{
"type": 3,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 0,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.7,
"rightValue": 0.7,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 1,
"topValue": 0.75,
"bottomValue": 0.75,
"leftValue": 0.25,
"rightValue": 0.25,
"headerValue": 0.3,
"footerValue": 0.3
},
{
"type": 2,
"topValue": 1,
"bottomValue": 1,
"leftValue": 1,
"rightValue": 1,
"headerValue": 0.5,
"footerValue": 0.5
}
]
},
"deletable": false,
"editable": false,
"movable": false,
"copyable": false,
"accessPriority": 0,
"active": false,
"id": "796c20b6-d42e-4a46-b143-6d16eecc78ac",
"state": 1,
"deleted": false,
"inserted": false,
"version": 0,
"created": null,
"createdBy": "John Doe",
"modified": null,
"modifiedBy": "John Doe"
},
"expandedLevel": 0
}
|
- Receive back the ReportSavingResult object and check that
success
field is true.