Overview
tables are a key model component. They represent a structured store of data within PhixFlow receiving data from one or more components, processing it then storing it.
Insert excerpt |
---|
| _standard_settings |
---|
| _standard_settings |
---|
nopanel | true |
---|
|
The tab toolbar has the following additional buttons:
Insert excerpt |
---|
| _record_sets_show |
---|
| _record_sets_show |
---|
nopanel | true |
---|
|
,
Insert excerpt |
---|
| _view_show |
---|
| _view_show |
---|
nopanel | true |
---|
|
,
Insert excerpt |
---|
| _run_analysis |
---|
| _run_analysis |
---|
nopanel | true |
---|
|
.
When you make changes to tables and attributes, PhixFlow automatically publishes them to the database; see Publishing Streams.
Insert excerpt |
---|
| _property_toolbar |
---|
| _property_toolbar |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | basic-h |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _parent |
---|
| _parent |
---|
nopanel | true |
---|
|
Table Properties
Basic Settings
Field | Description |
---|
Name | The name of the table. |
Model Validation Status | Insert excerpt |
---|
| _validate |
---|
| _validate |
---|
name | status |
---|
nopanel | true |
---|
|
|
Enabled | Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
| to include the steam during analysis runs. |
Static Data | Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
|
to set the table to hold static data. Static data is reference or "look up" data that is used as part of a table calculation. Updating a static tableIn general, static tables are not updated during an analysis run that is initiated on another table in the model. The exception is when an incoming push pipe is triggered, as this will force the table to update itself. Instead, to update the data in a static table you must run analysis directly on the table via: |
Period | Select the time period for the table: Excerpt |
---|
- Transactional: allows multiple users to run independent analysis tasks at the same time.
- Non-transactional
- Daily: generate or collect data every day.
- Monthly: generate or collect data every month.
- Variable: generate or collect data since the more recent run of the table to the current date.
|
As transactional tables need a UID attribute, PhixFlow automatically creates this attribute if it does not already exist. |
Default Data Range | This option affects the following items for which this is the backing table: - views
- screens
- card components.
Insert excerpt |
---|
| _data_range |
---|
| _data_range |
---|
nopanel | true |
---|
|
If no option is is selected, PhixFlow assumes the default data range is All. You can override this setting using the options Use Custom Data Range and Data Range available: You cannot override this setting for a view. |
Table Type | Select the table type; see Types of Table. The type indicates the function that operates on the data. - Aggregate Table
- Calculate Table
- CalculateBySet Table
- Cartesian Table
- Merge Table
|
Supersede Items on Pipe | Select a loop pipe from the list of those available. A loop pipe links the table back to itself. It compares new data records to the existing data records. If there is a repeated record PhixFlow uses the new one in the table and marks the old one as superseded . |
Audit Manual Changes | This check box is available when the Period is Transactional. Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
|
to update and delete initiated by actions (not those carried out by analysis runs) will automatically mark the existing record as superseded and create a new recordset. The new versions of the updated records will be placed in the new recordset. Inserts will simply create a new recordset, and add the inserted record into that recordset. When Audit Manual Changes is first set, the attributes UpdateAction , UpdatedByName , UpdatedByID and UpdatedTime will be created if they do not already exist. If you do not require these attributes, delete them. For the UpdatedByName attribute, PhixFlow creates a field of 250 characters. (In versions up to 8.0.4, the field was 50 characters long.) UpdateAction must be set to the type of action, such as INSERT, UPDATE or DELETE. The other attributes will be populated if they exist on the table:
UpdatedByName - the name of the user that performed the update, UpdatedByID - the internal id of the user that performed the update UpdatedTime - the date and time the update was made
|
Attributes
The grid contains a list of the attributes in the table. This section has a toolbar with standard buttons and Insert excerpt |
---|
| _table_show |
---|
| _table_show |
---|
nopanel | true |
---|
|
and Insert excerpt |
---|
| _file_collector_show |
---|
| _file_collector_show |
---|
nopanel | true |
---|
|
.
The grid lists the attributes (data columns) in the table data. To edit the properties of an attribute, double-click the attribute name to open the Attribute properties.
To remove an attribute from the table, select the attribute and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
To add a new attribute to the list, click
to open a new
Attribute properties tab.
To add an existing attribute to the list:
- Click
Insert excerpt |
---|
| _table_show |
---|
| _table_show |
---|
nopanel | true |
---|
|
to list the tables available in the repository. - Expand a table to show its attributes.
- Drag an attribute into this list to add it.
To edit only the expression:
- Right-click an attribute name to display the context menu.
- Select Edit the expression field.
- PhixFlow opens a simple text editor box
- Make changes to the attributes expression.
- Click to save your changes.
Multipliers and Filters
Field | Description |
---|
Input Multiplier | The input multiplier expression should evaluate to a list of one or more values. For each value in the list, the internal variable _inputMultiplier will be set to that value and the whole table processing will be repeated i.e. the pull pipes will be read and the data from those pipes processed to generate output records to be added to the current recordset. For example : do ( $aRange = [], addElement($aRange, rng.RangeFrom), addElement($aRange, rng.RangeTo), $bRange = [], addElement($bRange, $aRange), $bRange ) Where rng.RangeFrom = 500 and rng.RangeTo = 1000, the above example evaluates to [[500,1000]], which is a list containing 1 element, which is itself a list containing 2 elements. An input multiplier that evaluates to [3,4,7,8] would run the Table 4 times. Because Input Multipliers are evaluated first in the PhixFlow Timing Cycle they are often used to look up values that can be passed to Database or other Collectors. |
Log Input Multiplier Messages | Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
| to cause PhixFlow to write a message to the log every time an Input Multiplier value changes during an analysis run.
|
Output Multiplier | This field is an expression which should evaluate to an array of values. A separate output record will be produced for each value in the array and this value is available as _outputMultiplier in each of the table output attribute expressions (each value in the array is also available through _type, although this is not recommended usage). In effect this will multiply each of the output records by the number of elements from the returned list. For example :ifNull(in.ASSET, [1,10,12] , // else do [5,7] ) will create 3 records for every record in the table if in.ASSET contains a value (setting _type = 1, 10 and 12 in each case). Otherwise it will create 2 records for every record in the table (and set _type = 5 and 7). An output multiplier may also evaluate to a record, or a group of records. For example an Output Multiplier with the expression:do( lookup(lkin, $num = in.BNumber), lkin ) will return a list of records which match the lookup on the lkin pipe. In this case the required data can be extracted from the Output Multiplier using the following expression : do ( $values = _type, $values.account_num ) If the output multiplier expression evaluates to _NULL, an empty list of values or an empty list of records then a single output record will be produced with _type set to _NULL, _NULL or an empty record respectively. |
Select Records to Output | You can select a subset of records to output to the next modelling object. You select records using the data in any attribute that is in the table output. Enter an expression that should evaluate to true or false (equivalently 1 or 0). When the expression evaluates to true or 1, the records found by the expression are selected and output to the next modelling object. For example: - A table containing data about accounts has an attribute called "active".
- You only want to include "active" accounts in the following tables.
- Active accounts have the value 1.
To select active accounts, enter the expression _out.active . All records that have the active attribute set to any other value are ignored. |
Actions
This section has a toolbar with standard buttons. The grid contains a list of actions that operate on the table.
To edit the properties of an action, double-click its name. To add an action to the list, click
. PhixFlow opens the
Action properties tab.
To remove an action from the table, select the action and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
Record-Actions
This section has a toolbar with standard buttons. The grid contains a list of record-actions that can update records in the table.
To edit the properties of a record-action, double-click its name. To add a record-action to the list, click
. PhixFlow opens the
Record-Action properties tab.
To remove a record-action from the table, select the record-action and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
Views
This section has a toolbar with standard buttons. The grid contains a list of the data views for this table.
To edit the properties of an view, double-click its name. To add a view to the list, click
. PhixFlow opens the
View properties tab.
To remove a view from the table, select the view and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
Sort Orders
This section has a toolbar with standard buttons. The grid contains a list of the sort orders for this table.
To edit the properties of a sort order, double-click its name. To add a sort order to the list, click
. PhixFlow opens the
Sort Order properties tab.
To remove a sort order from the table, select the sort order and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
Errors
Insert excerpt |
---|
| _validate |
---|
| _validate |
---|
name | error |
---|
nopanel | true |
---|
|
Relations
This section has a toolbar with standard buttons. The grid displays a read-only list of the relationships that this table has to attributes in other tables. Double-click a relationship to display it's properties; see Relationship.Understanding ERDs
Filters
This section has a toolbar with standard buttons. The grid contains a list of the filters that can be applied to this table. You can add filters to view based on this table.
All filters in this list are available in the default view for this table. For views that you create, in the View properties tab → Filters section, you can add filters. The list of available filters is populated by the filters defined for the table.
To edit the properties of a filter, double-click its name. To add a filter to the list, click
. PhixFlow opens the
Filter properties tab.
To remove a filter from the table, select the filter and click
Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar.
Tip |
---|
In a view grid, the header row has a drop-down list of filters. The drop-down list is populated by the filters that are selected on the view. The filters must first be defined for the table here. |
This section has a toolbar with Insert excerpt |
---|
| _detailed_list |
---|
| _detailed_list |
---|
nopanel | true |
---|
|
and Insert excerpt |
---|
| _refresh |
---|
| _refresh |
---|
nopanel | true |
---|
|
buttons; see standard buttons. In the grid, PhixFlow lists all pipes that connect into the table. You cannot edit this grid.
Note |
---|
This list can include pipes that have no input. This occurs if the source table has been deleted or if a model has been moved to a different PhixFlow instance (export/import), leaving behind a referenced table. Any pipes with no input are highlighted in yellow. To resolve pipes with no input you can: - recreate the missing table
- import the missing table
- keep the connection, if it will be restored when the model is moved to a different PhixFlow instance
- delete the pipe, if it is no longer required.
|
Download Limits
Anchor |
---|
| download_limits |
---|
| download_limits |
---|
|
The following properties affect the number of data records a user can download from a view, such as a grid, chart or card; see Download CSV or Excel Data.
Field | Description |
---|
Table Download Limit | Enter the maximum number of records that a user can download from a view on this table. If no value is set, PhixFlow uses the default limit set in System Configuration→ System Tuning → Default Download File Limit. |
Allow Unlimited Downloads | Insert excerpt |
---|
| _check_box_untick |
---|
| _check_box_untick |
---|
nopanel | true |
---|
|
to restrict all users to the Table Download Limit. Insert excerpt |
---|
| _check_box_tick |
---|
| _check_box_tick |
---|
nopanel | true |
---|
|
to display a User Groups section where you can specify user groups whose members can download unlimited data from a view on this table. For example, members of the Administrators user group may need to download all data. |
User Groups | Available when Allow Unlimited Downloads is ticked. Use this section to select the user groups whose members can download an unlimited number of records. This section has a toolbar with standard buttons and Insert excerpt |
---|
| _user_group |
---|
| _user_group |
---|
nopanel | true |
---|
| . The grid contains a list of user groups that are exempt from the Table Download Limit. To add a user group to the list: - Click
Insert excerpt |
---|
| _user_group |
---|
| _user_group |
---|
nopanel | true |
---|
| to list all the user groups in the repository. - Drag user groups into this list to add them to the role.
To remove user groups, use the Insert excerpt |
---|
| _delete |
---|
| _delete |
---|
nopanel | true |
---|
|
in the toolbar. |