diff --git a/src/pages/overview/document-generation-api/tablewithmarkers.md b/src/pages/overview/document-generation-api/tablewithmarkers.md index 371396739..c984edfa8 100644 --- a/src/pages/overview/document-generation-api/tablewithmarkers.md +++ b/src/pages/overview/document-generation-api/tablewithmarkers.md @@ -318,3 +318,48 @@ JSON representation of the input data: ![Discard row if with table markers](../images/discard_row_if_table_markers.png) +### Discard the row in a horizontal table if the condition evaluates to true +A row in the horizontal table can be discarded only when the condition in the discard-row-if(expr(**condition**)) evaluates +to true in the provided context. Add this construct along with the template tag to discard the row based on the provided condition. + +For Example: {{PROPERTY:**discard-row-if(expr(condition))**}}
+JSON representation of the input data: +```json +{ + "conversion": [ + { + "month": "July, 2021", + "rate": 10, + "method": "Payout by Cheque" + }, + { + "month": "Dec, 2021", + "rate": 20, + "method": "Payout by Cheque" + }, + { + "month": "Dec, 2022", + "rate": 40, + "method": "Payout by Cheque" + }, + { + "month": "Dec, 2021", + "rate": 80, + "method": "Payout by Cheque" + }, + { + "month": "April, 2022", + "rate": 100, + "method": "Payout by Cash" + }, + { + "month": "Dec, 2022", + "rate": 45, + "method": "Payout by Cheque" + } + ] +} +``` + + +![Discard row if with table markers](../images/discard_row_in_horizontal_table.png) diff --git a/src/pages/overview/images/discard_row_in_horizontal_table.png b/src/pages/overview/images/discard_row_in_horizontal_table.png new file mode 100644 index 000000000..82b721b50 Binary files /dev/null and b/src/pages/overview/images/discard_row_in_horizontal_table.png differ diff --git a/src/pages/overview/releasenotes.md b/src/pages/overview/releasenotes.md index 0fa3e6606..f0fd2f98f 100644 --- a/src/pages/overview/releasenotes.md +++ b/src/pages/overview/releasenotes.md @@ -173,6 +173,12 @@ Upgrading to the latest SDK should not break existing applications. ## Change history +### Adobe Document Generation Server Side Release (April 30, 2024: server side release) + +| Change | Language | Description | +|---------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| New | All | Added support for [discard the row in a horizontal table](../document-generation-api/tablewithmarkers/#discard-the-row-in-a-horizontal-table-if-the-condition-evaluates-to-true) in Document Generation API. | + ### 4.0.0 (April, 2024; major release) | Change | Language | Description |