Overview
There are a number of ways to quickly create test data in PhixFlow, which can be manually edited and added to. On this page, the following methods will be covered:
Creating an Editable Grid - This method is best for using existing data and making amendments.
Using Input/Output Multipliers - This method is best for small datasets, with specific examples. For example, testing the results of a function.
Using External APIs - This method is best for large datasets and existing data.
Creating an Editable Grid
Use a simple ERD and Screen setup.
Step 1: Create a table
Expand |
---|
|
On an Insert excerpt |
---|
| HELP100:_erd |
---|
| HELP100:_erd |
---|
nopanel | true |
---|
| , either:Create a new table by dragging Insert excerpt |
---|
| HELP100:_tables |
---|
| HELP100:_tables |
---|
nopanel | true |
---|
| from the toolbar onto your ERD canvas- Add an existing table by clicking
Insert excerpt |
---|
| HELP100:_tables |
---|
| HELP100:_tables |
---|
nopanel | true |
---|
| on the toolbar, then dragging a table from the Insert excerpt |
---|
| HELP100:_repository |
---|
| HELP100:_repository |
---|
nopanel | true |
---|
| onto your ERD canvas - Import an Excel CSV file by dragging it from your PC onto your ERD canvas
If you create a new table, PhixFlow automatically adds the following attributes to the table: Insert excerpt |
---|
| HELP100:_key_primary |
---|
| HELP100:_key_primary |
---|
nopanel | true |
---|
| : UID Insert excerpt |
---|
| HELP100:_display_name |
---|
| HELP100:_display_name |
---|
nopanel | true |
---|
| : Name
Add as many new attributes to your table as you need by clicking Insert excerpt |
---|
| HELP100:_addIcon |
---|
| HELP100:_addIcon |
---|
nopanel | true |
---|
| Add on the table, and give your attributes appropriate names
|
Step 2: Create a Screen
Expand |
---|
|
- To create a screen using your ERD data, click
Insert excerpt |
---|
| HELP100:_more_options_erd_IconOnly |
---|
| HELP100:_more_options_erd_IconOnly |
---|
nopanel | true |
---|
| on your table and choose Insert excerpt |
---|
| HELP100:_screen_icon_only |
---|
| HELP100:_screen_icon_only |
---|
nopanel | true |
---|
| Create Screen - On the Create Screen wizard, enter the following:
- Name: give your screen an appropriate name
- Open Maximised: toggle
Insert excerpt |
---|
| HELP100:_toggle_off |
---|
| HELP100:_toggle_off |
---|
nopanel | true |
---|
|
- Description: give your screen an appropriate description to indicate its purpose
- Template: choose Edit Form
- Click Create Screen
- The Available Attributes selector will automatically appear, press the cross to close this
- To select the attributes you wish to see on your screen, select
Insert excerpt |
---|
| HELP100:_attributes |
---|
| HELP100:_attributes |
---|
nopanel | true |
---|
| in the toolbar - Click the tickbox next to each attribute, or click the top tickbox to select all the attributes, and drag them onto your screen
- PhixFlow will ask how you would like the attributes to be displayed, choose
Insert excerpt |
---|
| HELP100:_grid |
---|
| HELP100:_grid |
---|
nopanel | true |
---|
|
- PhixFlow will ask if you would like to add actions, choose Yes
- On the Grid Actions wizard, drag Delete Selected Records onto the Delete button on your screen
- Close the Grid Actions and Available Attribute wizards
|
Step 3: Set up the Screen
Expand |
---|
|
- Click on the grid on your screen to highlight it in the Layers panel on the left within the Body
- The View Component Properties will show on the right, click the View hyperlink
- In the View Properties, toggle on
Insert excerpt |
---|
| HELP100:_toggle_on |
---|
| HELP100:_toggle_on |
---|
nopanel | true |
---|
| Auto Save - Click
Insert excerpt |
---|
| HELP100:_finish |
---|
| HELP100:_finish |
---|
nopanel | true |
---|
|
- In the Layers panel, click on the area FieldContainer to open its Properties on the right
- Click on the
Insert excerpt |
---|
| HELP100:_property_tabs |
---|
| HELP100:_property_tabs |
---|
name | style |
---|
nopanel | true |
---|
| and within the Style Settings section, change the Width and Height to 100% - Click
Insert excerpt |
---|
| HELP100:_finish |
---|
| HELP100:_finish |
---|
nopanel | true |
---|
|
- Click on the Name header on the grid to open the View Attribute Properties on the right
- On the
Insert excerpt |
---|
| HELP100:_property_tabs |
---|
| HELP100:_property_tabs |
---|
nopanel | true |
---|
| , within the Grid Settings section, untick Read Only - Repeat this step for all of your attribute headers, except UID
- Note: Unticking Read Only will allow you to manually enter information into these columns on your grid
- Then click
Insert excerpt |
---|
| HELP100:_finish |
---|
| HELP100:_finish |
---|
nopanel | true |
---|
|
- With Auto Save set up, the screen no longer requires a Save button
- To delete the Save button, click on it on the screen to highlight it in the Layers, right click it in Layers and select
Insert excerpt |
---|
| HELP100:_permanentlyDelete |
---|
| HELP100:_permanentlyDelete |
---|
nopanel | true |
---|
|
- Open the Palette by clicking
Insert excerpt |
---|
| HELP100:_palette |
---|
| HELP100:_palette |
---|
nopanel | true |
---|
| on the toolbar - Expand the Buttons - Primary section and drag the Add button onto your screen - the screen will highlight the areas where the button should be dropped
- Give your button a name
- Optional: In the Layers panel, expand the area Window CRUD Bar. Then, while holding
shift , drag and drop your Add button onto either the Left or Right area within the Window CRUD Bar
Check PointAt this point, your screen should look similar to this:
|
Step 4: Add New Records via an Actionflow
Expand |
---|
|
- Right-click on your new Add button and choose
Insert excerpt |
---|
| HELP100:_actionflow_add |
---|
| HELP100:_actionflow_add |
---|
nopanel | true |
---|
|
- Give your actionflow a name
- To configure the input connection, within the Connections section on the left, click on Click to Connect
- Choose the On Click Action Event, then select Connect Input
- Drag the Calculate node from the toolbar onto the canvas
- Give it a name
- The Properties for the Calculate node will show on the right
- In the Output Attributes section, add a new attribute by selecting
Insert excerpt |
---|
| HELP100:_addIcon |
---|
| HELP100:_addIcon |
---|
nopanel | true |
---|
|
- Give it a name and set the expression to
"new" - Drag the Save node from the toolbar onto the canvas, give it a name, set the Type to Auto Insert/Update, and from the Table dropdown list, choose your table
- Connect the out pipe from the Calculate node to the Save node
- Map across your Output Attribute from the Calculate node onto the Save node
- Drag the Input Connection Point onto the Calculate node
- Close the Actionflow and open the screen you created earlier
Insert excerpt |
---|
| HELP100:_lock |
---|
| HELP100:_lock |
---|
nopanel | true |
---|
| the screen, then select the Add button- The Actionflow will fire and a new record will be created on the grid, with a unique ID (UID)
- Double click on the fields to manually enter information
- Repeat these steps of adding a new record and updating the information as many times as required
- Each record will save automatically
|
Check Point
At this point, your screen should look similar to this:
Use a simple table configuration on an
Insert excerpt |
---|
| HELP100:_analysisModel |
---|
| HELP100:_analysisModel |
---|
nopanel | true |
---|
|
.
Create a
Single Record TableThis example uses one number to prevent the need for input pipes. The table in this example will produce one record.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for one of your attributes must be _inputMultiplier
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add any number- Image Removed
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show one record, with the number 3 recorded against the attribute Region Number, as this was the Input Multiplier attribute - Image Removed
Tip |
---|
To create a table with no records, follow the above steps but instead of adding a number to the Input Multiplier box, instead write _NULL |
Create a Multi-Record Table using
the Syntax 1..n This example uses the syntax 1..n to run a table multiples times. The numerical difference between the two numbers will determine the number of records returned. For example, using the Input Multiplier 1..10 will return ten records.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for one of your attributes must be _inputMultiplier
In the Analysis Options section, in the Input Multiplier box, add any 2 numbers separated by .. e.g. 1..10- Remember, the first number must be smaller than the second number
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show ten records, with each record assigned a unique number between 1 and 10 - Image Removed
Create a Multi-Record Table using an Array
This example uses an array to create static data. The table in this example will produce the exact records as stipulated in the Input Multiplier.
Expand |
---|
|
- Create a blank Calculate
Insert excerpt |
---|
| HELP100:_tables |
---|
| HELP100:_tables |
---|
nopanel | true |
---|
|
Within the Table's Insert excerpt |
---|
| HELP100:_property_tabs |
---|
| HELP100:_property_tabs |
---|
nopanel | true |
---|
| , add Insert excerpt |
---|
| HELP100:_attributes |
---|
| HELP100:_attributes |
---|
nopanel | true |
---|
| to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .1, .2, .3, etc.
- In the Analysis Options section, in the Input Multiplier box, add an array, like the example here
Code Block |
---|
| [
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
| HELP100:_finish |
---|
| HELP100:_finish |
---|
nopanel | true |
---|
| the Properties, then Insert excerpt |
---|
| HELP100:_run_analysis |
---|
| HELP100:_run_analysis |
---|
nopanel | true |
---|
| on the table- Hover over the table and select
Insert excerpt |
---|
| HELP100:_view_show |
---|
| HELP100:_view_show |
---|
nopanel | true |
---|
|
- For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier
Tip |
---|
Alternatively, an Output Multiplier can be used to create data. Repeat the steps above, but with the following changes: - The Expression for all of your attributes must be _outputMultiplier, followed by .1, .2, .3, etc.
- Add the same array as above, but to the Output Multiplier box
- Add 1 in the Input Multiplier box to indicate the number of times the table should run
|
|
Create a Multi-Record Table using a Lookup
This example uses another table as an input multiplier to pull in data from a dataset. For each record in the dataset, the Input Multiplier will run once.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Add a Insert excerpt |
---|
HELP100:_pipe | HELP100:_pipe | nopanel | true |
pipe from the table with the data that is being brought across, to the new tableIn the Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
for the pipe, change the Type to Look-up and tick StaticWithin the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .[attributeName], where [attributeName] is the attribute from the other table
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add an array, like the example here Code Block |
---|
|
[
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier Create a Multi-Record Table using a Lookup and Filter
This example uses a pipe as an input multiplier to pull in data from a dataset. For each record in the dataset, the Input Multiplier will run once.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .1, .2, .3, etc.
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add an array, like the example here Code Block |
---|
|
[
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier This example uses a pipe as an input multiplier to pull in data from a dataset. For each record in the dataset, the Input Multiplier will run once.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .1, .2, .3, etc.
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add an array, like the example here Code Block |
---|
|
[
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier This example uses a pipe as an input multiplier to pull in data from a dataset. For each record in the dataset, the Input Multiplier will run once.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
| HELP100:_tables | HELP100:_tables |
nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .1, .2, .3, etc.
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add an array, like the example here Code Block |
---|
|
[
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
HELP100:_view_showHELP100:_view_show | nopanel | true |
For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier
Create a Multi-Record Table using a File Exporter
This example uses a pipe as an input multiplier to pull in data from a dataset. For each record in the dataset, the Input Multiplier will run once.
Expand |
---|
|
Create a blank Calculate Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
Within the Table's Insert excerpt |
---|
HELP100:_property_tabs | HELP100:_property_tabs | nopanel | true |
, add Insert excerpt |
---|
HELP100:_attributes | HELP100:_attributes | nopanel | true |
to the table, which will act as column headers- The Expression for all of your attributes must be _inputMultiplier, followed by .1, .2, .3, etc.
- Image Removed
In the Analysis Options section, in the Input Multiplier box, add an array, like the example here
Code Block |
---|
|
[
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
HELP100:_finish | HELP100:_finish | nopanel | true |
the Properties, then Insert excerpt |
---|
HELP100:_run_analysis | HELP100:_run_analysis | nopanel | true |
on the tableHover over the table and select Insert excerpt |
---|
HELP100:_view_show | HELP100:_view_show | nopanel | true |
For this example, the data will show three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier Using External APIs
Coming soon