Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discar row #831

Merged
merged 6 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/pages/overview/document-generation-api/tablewithmarkers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))**}} <br/>
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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/pages/overview/releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading