set_alternating_row_color
Apply alternating row colors to a tablix detail section using conditional BackgroundColor expressions, replacing any existing color settings.
Instructions
Zebra-stripe a tablix's detail row by writing BackgroundColor=IIf(RowNumber(Nothing) Mod 2, color_a, color_b) on every detail cell's Textbox. Walks the row hierarchy to find the Details leaf — works after add_row_group nests the structure deeper. Replaces any existing BackgroundColor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"tablix_name": "<tablix_name>",
"color_a": "<color_a>",
"color_b": "<color_b>"
},
"name": "set_alternating_row_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| color_a | Yes | Odd-row color, e.g. '#F2F2F2'. | |
| color_b | Yes | Even-row color, e.g. '#FFFFFF'. | |
| tablix_name | Yes |