Sfairadora

  • Reference Guide

State Object of Table

Table publishes a state object of the following type under the identifier seq_state.
Type
Name
Description
filter
The current filter state.
order
The current order state.
unicity
The current unicity state.
Union
summary
There is a structure is stored in this attribute, in which a single item of the type Bool for every summary row is present. The names of the items are the summary row identifiers (the attribute id of the structure Summary_info).
If an item of the structure is set TRUE, the corresponding summary row is displayed. This does not affect the global displayed/hidden state of the summary as whole.
Union
columns
A structure is stored in this attribute, in which a single item for every table column is present. The names of the items are taken from the Identifier field found in the window Column Properties (the attribute id of the column definition structure).
For columns without subordinate columns, the item type is column state (see below). If it has subordinated columns, it contains the displayed and _marked items and, furthermore, one item for every subordinate column.
column_info
The properties of the active column or marked columns.
varying type
edited_data
A forwarded item referring to the edited sequence or an inferred sequence representing the table’s local view.
Atom const
edited_data_id
The name of the object in which the sequence edited by the table is located.
Dref const
edited_data_ref
The reference to the sequence relative to the object specified above.
Dref const
edited_seq_ref
The reference to the currently edited (sub)sequence. The reference is relative to the entire sequence being edited by the table. In the most common case, it is an empty reference. A non-empty reference is present when a sub-sequence within the table is edited.
Dword const
edited_index
The active row index within the currently edited sequence (identified by the attribute edited_seq_ref).
Dref const
edited_column_ref
The active column reference relative to the currently edited sequence (identified by the attribute edited_seq_ref).
Seq(Bool) const optional
mark_indication
If a row is marked, a sequence of Bool elements of the same size as the edited sequence is created in this attribute. If the corresponding table row is marked, the sequence element is set TRUE. (The sequence being edited is identified by the attribute edited_seq_ref.)
Note: By concatenating ([Dref]seq_state.edited_data_id) . (seq_state.edited_data_ref) . (seq_state.edited_seq_ref) . (seq_state.edited_index) . (seq_state.edited_column_ref), the reference to the cell data being edited is acquired.

Column State

Type
Name
Description
Int optional
_width
The fixed width of the column (in pixels). If the value is not specified, the column width is updated automatically according to the column contents.
Bool
_dispalyed
If set TRUE, the column is displayed.
Bool
_marked
If set TRUE, the column is marked.