Merging or Splitting Cells of a Table

Usage

Merges cells of a table into one cell or splits the previously merged cells.

Request

PUT /documents/<documentID>/reports/<reportID>/elements/<elementID>?operation=<operation>&targetCellIds=<targetCellIDs>

Where:
  • <operation> is a mandatory parameter of type string that defines the operation to be applied on the cell. Values are split or merge.
  • <targetCellIDs> is a mandatory parameter that lists the identifiers of the cells to be split or merged, separated by a comma
Operation Rules

Merge rules:

  • The list of identifiers must contain at least two cells.
  • The cells in the list of identifiers must be all inside the same cell matrix.
  • The cells must form a rectangle zone in the table.

Split rules:

  • The cell is inside a cell matrix.
  • The cell has the row or column span greater than 1.
Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request.

Example

Merging Two Cells of a Table (XML)

PUT /documents/16654/reports/1/elements/12?operation=merge&targetCellIds=4,6

<success>
    <message>The resource of type "Report element" with identifier "12" has been successfully updated.</message>
    <id>12</id>
</success>

Example

Splitting Three Cells of a Table (JSON)

PUT /documents/16654/reports/1/elements/12?operation=split&targetCellIds=8,10,9

{"success":
    {"message":"The resource of type "Report element" with identifier "12" has been successfully updated.",
     "id":12}
}