Apply outline state
rillsoft_outline_applyExpands or collapses the visible resource or capacity view by outline level or exact open rows, like the ribbon buttons. Read-only for the plan; use only in that view.
Instructions
Expands or collapses the visible resource or capacity view - the same effect as the expand and collapse buttons of the ribbon. Give exactly one of outline and openRows; openRows restores a state read before, row by row, which outline alone cannot do once someone has opened rows by hand. In any other view the call fails and points at rillsoft_view_state_apply. 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 |
|---|---|---|---|
| outline | No | collapsed closes everything, level_1 to level_3 open down to that level, expanded opens everything. step_expand and step_collapse move one step, exactly like the ribbon buttons - they depend on where the view stands and are therefore not repeatable. Give either this or openRows | |
| openRows | No | exactly these group rows end up open, every other one closed. Give either this or outline |
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 |