Creating an Editable Grid
Use a simple ERD and Screen setup to create an editable grid.
Step 1: Create a table
Expand |
---|
|
On an Insert excerpt |
---|
| HELP100:_erdHELP100: |
---|
| _erd |
---|
nopanel | true |
---|
| , either:Create a new table by dragging Insert excerpt |
---|
| HELP100:_tablesHELP100: |
---|
| _tables |
---|
nopanel | true |
---|
| from the toolbar onto your ERD canvas- Add an existing table by clicking
Insert excerpt |
---|
| HELP100:_tablesHELP100: |
---|
| _tables |
---|
nopanel | true |
---|
| on the toolbar, then dragging a table from the Insert excerpt |
---|
| HELP100:_repositoryHELP100: |
---|
| _repository |
---|
nopanel | true |
---|
| onto your ERD canvas - Import an Excel a 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_primaryHELP100: |
---|
| _key_primary |
---|
nopanel | true |
---|
| : UID Insert excerpt |
---|
| HELP100:_display_nameHELP100: |
---|
| _display_name |
---|
nopanel | true |
---|
| : Name Add as many new attributes to your table as you need by clicking
- If you import a CSV file, add the above UID attribute to your table and set it as the
Insert excerpt |
---|
| _key_primary |
---|
| _key_primary |
---|
nopanel | true |
---|
| Add the attributes you require to your table by clicking Insert excerpt |
---|
| HELP100:_addIconHELP100: |
---|
| _addIcon |
---|
nopanel | true |
---|
| Add on the table, and give your attributes appropriate namesnames- New attributes only require a valid Name and Type
|
Step 2: Create a Screen
Expand |
---|
|
- To create a screen using your ERD data, click
Insert excerpt |
---|
| HELP100:_more_options_erd_IconOnlyHELP100: |
---|
| _more_options_erd_IconOnly |
---|
nopanel | true |
---|
| on your table and choose Insert excerpt |
---|
| HELP100:_screen_icon_onlyHELP100: |
---|
| _screen_icon_only |
---|
nopanel | true |
---|
| Create Screen - On the Create Screen wizard, enter the following:
- Name: give your screen an appropriate namename
- Open Maximised: toggle
Insert excerpt |
---|
| HELP100:_toggle_offHELP100: |
---|
| _toggle_off |
---|
nopanel | true |
---|
|
- Description: give your screen an appropriate description to indicate its purpose
- Template: choose Tile with Buttons, Tile no Buttons or Edit Form
- Image RemovedFor this example, Edit Form has been chosen
- Click Create Screen
- The Available Attributes selector will automatically appear, press the cross to close thisTo select the attributes you wish to see on your screen, select excerpt-include
HELP100:_attributes | HELP100:_attributes | nopanel | true | in the toolbar - Click the tickbox next to each attribute, or click the top tickbox to select all of the attributes, and drag them onto your screen
- Image RemovedImage Added
- PhixFlow will ask how you would like the attributes to be displayed, choose
Insert excerpt |
---|
| HELP100:_gridHELP100: |
---|
| _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 - this is the only button you need
- Close the Grid Actions and Available Attribute wizards
|
Step 3: Set up the Screen
Expand |
---|
|
- Click Right-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
- Image Removed
- In the View Propertiesand select
Insert excerpt |
---|
| _view_show_config |
---|
| _view_show_config |
---|
nopanel | true |
---|
|
- Image Added
- On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
| , toggle on Insert excerpt |
---|
| HELP100:_toggle_onHELP100: |
---|
| _toggle_on |
---|
nopanel | true |
---|
| Auto Save Click- Note: Enabling Auto Save automatically saves any changes made to the data
- Click
HELP100: HELP100:
- In the Layers panel, click on the area FieldContainer to containing the grid to open its Properties on the right
- Click on the
Insert excerpt |
---|
| HELP100:_property_tabsHELP100: |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
| and within the Style Settings section, change ensure the Width and Height to 100% Click- Click
HELP100: HELP100:
- Click on the Name attribute header on the grid to open the View Attribute Properties on the right
- Image Added
- On the
Insert excerpt |
---|
| HELP100:_property_tabsHELP100: |
---|
| _property_tabs |
---|
name | style |
---|
nopanel | true |
---|
| , within in the Grid Settings section, untick Read Only- In PhixFlow version 11 and older, this option is on the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
|
- Click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
- 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 clickclick
Insert excerpt |
---|
| HELP100:_finishHELP100: |
---|
| _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:_permanentlyDeleteHELP100: |
---|
| _permanentlyDelete |
---|
nopanel | true |
---|
|
- Open the Palette by clicking
Insert excerpt |
---|
| HELP100:_paletteHELP100: |
---|
| _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_addHELP100: |
---|
| _actionflow_add |
---|
nopanel | true |
---|
|
- Give your
actionflow - 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 a
Insert excerpt |
---|
| _action_calculate |
---|
| _action_calculate |
---|
nopanel | true |
---|
| action from the toolbar onto the canvas- Give it a suitable name
- The Properties for the Calculate node will
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
| for the Calculate action will show on the right- If these are not open, click the Calculate action to reopen them
- In the Output Attributes section, add a new attribute by selecting
Insert excerpt |
---|
| HELP100:_addIconHELP100: |
---|
| _addIcon |
---|
nopanel | true |
---|
|
- Give it a name and set the expression to
"new"
- Drag the Save node from the a
Insert excerpt |
---|
| _action_save |
---|
| _action_save |
---|
nopanel | true |
---|
| action from the toolbar onto the canvas, give - Give it a name
, set - Set the Type to Auto Insert/Update
, and from - On the Table dropdown list, choose
your table- the table you made earlier on your ERD
- Connect the out pipe from the Calculate node to the Save node
- Image RemovedImage Added
- Map across your Output Attribute from the Calculate node onto the Save node
- Image RemovedImage Added
- Drag the Input Connection Point onto the Calculate node
- Image RemovedImage Added
- Close the Actionflow and open the screen you created earlier
Insert excerpt |
---|
| HELP100:_lockHELP100: |
---|
| _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:
Using
Input and Output Multipliers Anchor |
---|
Multiplier | Multiplier | Use a simple table configuration on an Insert excerpt |
---|
HELP100:_analysisModel | HELP100:_analysisModel | nopanel | true |
.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 |
---|
|
On an Insert excerpt |
---|
HELP100:_analysisModel | HELP100:_analysisModel | nopanel | true |
, 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- Add the Expression _inputMultiplier, followed by .1, .2, .3, etc. to the relevant attributes
- 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 shows three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier, along with the Last Updated date Image Removed 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
Image Removed |
Using External APIs
Configure an
Insert excerpt |
---|
| HELP100:_analysisModelHELP100: |
---|
| _analysisModel |
---|
nopanel | true |
---|
|
to import data stored outside of PhixFlow using an API.
Create a Multi-Record Table using an API
This example uses three elements, a Insert excerpt |
---|
HELP100:_http_datasource | HELP100:_http_datasource | nopanel | true |
, Insert excerpt |
---|
HELP100:_http_collector | HELP100:_http_collector | nopanel | true |
and Insert excerpt |
---|
HELP100:_tables | HELP100:_tables | nopanel | true |
to the below three elements to create dynamic data. The table in this example will pull across data, as stipulated by the attributes, and this data will change each time the user clicks
Insert excerpt |
---|
| HELP100:_run_analysisHELP100: |
---|
| _run_analysis |
---|
nopanel | true |
---|
|
.
The HTTP Datasource will is used to connect to the external source, the HTTP Collector will read then reads the data, and the Table will store stores the data in PhixFlow.
For more information on how these three elements work and for a detailed example, see Importing Data Through an API.
Expand |
---|
|
- Prepare your API data and ensure it is in JSON format. For this example, we have created a data schema and mock API using https://www.mockaroo.com/mock_apis
- On an
Insert excerpt |
---|
| HELP100:_analysisModelHELP100: |
---|
| _analysisModel |
---|
nopanel | true |
---|
| , create a new Insert excerpt |
---|
| HELP100:_http_datasourceHELP100: |
---|
| _http_datasource |
---|
nopanel | true |
---|
|
- Set up your
Insert excerpt |
---|
| HELP100:_http_datasourceHELP100: |
---|
| _http_datasource |
---|
nopanel | true |
---|
| Properties, which should Properties to look similar to the below settings, and ensure your URL is correct for matches your API source
- Hover over your
Insert excerpt |
---|
| HELP100:_http_datasourceHELP100: |
---|
| _http_datasource |
---|
nopanel | true |
---|
| and select Insert excerpt |
---|
| HELP100:_http_collector_add_newHELP100: |
---|
| _http_collector_add_new |
---|
nopanel | true |
---|
| on the hover menu - Set up the
Insert excerpt |
---|
| HELP100:_http_collectorHELP100: |
---|
| _http_collector |
---|
nopanel | true |
---|
| Properties, which should Properties to look similar to the below settings, and ensure your URL passes in your API key
- Hover over your
Insert excerpt |
---|
| HELP100:_http_collectorHELP100: |
---|
| _http_collector |
---|
nopanel | true |
---|
| and select Insert excerpt |
---|
| HELP100:_table_newHELP100: |
---|
| _table_new |
---|
nopanel | true |
---|
|
- Set up the
Insert excerpt |
---|
| HELP100:_tablesHELP100: |
---|
| _tables |
---|
nopanel | true |
---|
| Properties, which should Properties to look similar to the below settings, and ensure the HELP100:HELP100: you wish to display on your view are set up
Insert excerpt |
---|
| HELP100:_run_analysisHELP100: |
---|
| _run_analysis |
---|
nopanel | true |
---|
| on your Insert excerpt |
---|
| HELP100:_tablesHELP100: |
---|
| _tables |
---|
nopanel | true |
---|
| , then Insert excerpt |
---|
| HELP100:_view_showHELP100: |
---|
| _view_show |
---|
nopanel | true |
---|
| to see your data- Image Added
|
Use a simple table configuration on an
Insert excerpt |
---|
| _analysisModel |
---|
| _analysisModel |
---|
nopanel | true |
---|
|
.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 |
---|
|
- On an
Insert excerpt |
---|
| _analysisModel |
---|
| _analysisModel |
---|
nopanel | true |
---|
| , create a blank Calculate Insert excerpt |
---|
| _tables |
---|
| _tables |
---|
nopanel | true |
---|
|
Within the Table's Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
| , add Insert excerpt |
---|
| _attributes |
---|
| _attributes |
---|
nopanel | true |
---|
| to the table, which will act as column headers- Add the Expression _inputMultiplier, followed by .1, .2, .3, etc. to the relevant attributes
- Image Added
- In the Analysis Options section, in the Input Multiplier box, add an array, like the example here
|
For a detailed example, see Importing Data Through an API.
Code Block |
---|
| [
[1,'CHAIR',100],
[2,'TABLE',430],
[3,'MONITOR',800]
] |
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
| the Properties, then Insert excerpt |
---|
| _run_analysis |
---|
| _run_analysis |
---|
nopanel | true |
---|
| on the table- Hover over the table and select
Insert excerpt |
---|
| _view_show |
---|
| _view_show |
---|
nopanel | true |
---|
|
- For this example, the data shows three records, with each record assigned the UID, Item name and Quantity as specified by the Input Multiplier, along with the Last Updated date
- Image Added
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
Image Added |
|