Apply outline state of one row
rillsoft_outline_row_applyExpands or collapses one group row in the resource or capacity view while leaving all other rows unchanged; useful for step-by-step outline navigation.
Instructions
Opens or closes one single group row of the visible resource or capacity view - the same effect as clicking the plus or minus in front of it. Every other row keeps its state, which is what sets this apart from rillsoft_outline_apply. Rows that become visible this way can be opened the same way, level by level. A row already in the wanted state is left alone and reported back, so the call can be repeated. A row whose parent is still closed is not addressable; open the parent first. In any other view the call fails and points at rillsoft_view_state_apply. Like a click it moves the selection to that row and the property sheet of the info window follows. No undo step and no change to the plan itself - no task, no assignment, no date moves; that is why this tool counts as read-only. What it does change is the way the project is displayed: the outline state is stored with the project, and going through the user interface marks the document as changed, so a later save writes the new state along. It answers like rillsoft_outline_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | Yes | coordinates of the group row to open or close, as rillsoft_outline_get reports them under openRows | |
| action | Yes | expand opens the row, collapse closes it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | Yes | the grouping levels of the view, outermost first | |
| outline | Yes | the absolute state where the view is in one, otherwise mixed | |
| openRows | Yes | every group row that is open, in display order. Pass the array back to rillsoft_outline_apply to restore exactly this state | |
| canExpand | Yes | true = something is still left to expand | |
| canCollapse | Yes | true = something is still left to collapse |