app_set_grid_cell
Type text into a specified grid cell by row and column, then read it back to verify the value; optionally list a row's cells first to inspect available columns.
Instructions
Type into one cell of a grid, and read it back.
ALTIUM'S RULE AND PROPERTY EDITORS TAKE THEIR INPUT THIS WAY. Selecting a row was possible before; changing anything in it was not.
A grid cell is not an edit control until it is being edited, so the cell is activated first and the text goes to whatever editor the grid puts there. The value is then read back off the CELL, because the editor disappears when the edit commits.
Args: control_label: the grid's label. row: the row, matched by name. column: the column name, or a numeric index. These grids leave many cells unnamed, and an index is then the only handle there is. text: what to type. dialog_title: which dialog, when several are open. list_only: report the row's cells and change nothing. Worth doing first, since it shows which columns have names.
Returns:
{"ok": true, "row": ..., "column": ..., "value": ...},
or ok: false when the cell reads back differently, which
happens on read-only columns and on ones that validate and
revert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | Yes | ||
| text | Yes | ||
| column | Yes | ||
| list_only | No | ||
| dialog_title | No | ||
| control_label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||