Apply columns of the view
rillsoft_view_columns_applyAdjust column visibility, width, and order in the project view. Show, hide, or resize columns to customize the display without altering project data.
Instructions
Shows, hides, sizes and arranges columns of the list on the left of the visible view - the same effect as the context menu of the column header, dragging its edge and the column arrangement dialog. Give order, columns or both; a call with neither is rejected. Under columns only the columns named are touched, and a column that already stands as asked is left alone, so the call can be repeated. Rejected in plain words: an unknown column name, hiding a column the context menu greys out, a width on a column that stays hidden ({ visible: true, width: X } in one entry shows it and sizes it in one go), and an order that leaves a column out or names one twice. The list at the bottom of a view with a second chart is not addressable. 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 column state is stored with the project, and going through the user interface marks the document as changed, so a later save writes it along. It answers like rillsoft_view_columns_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | display order of the columns from left to right: the contract names of ALL columns of the view, each exactly once - the same array rillsoft_view_columns_get reports under order. This arranges the column headers; it does not sort the rows, and it does not show or hide anything - a hidden column keeps its place in the list and takes it up once it is shown. A list that leaves a column out or names one twice is rejected, never completed | |
| columns | No | the columns to change - every column left out stays as it is. Each entry needs name and at least one of visible and width |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | name of the visible view the columns belong to | |
| order | Yes | contract names of all columns from left to right - the arrangement of the column headers, not a sorting of the rows. Same sequence as columns[]; pass it back to rillsoft_view_columns_apply to restore the arrangement | |
| columns | Yes | every column of the list in display order, hidden ones included |