What is In-Grid Editing?
Grids can be configured to allow direct edits to their data, rather than through a separate form or screen.
Setting up In-Grid Editing
- On a grid, open the view configuration by right-clicking and selecting
Insert excerpt |
---|
| _view_show_config |
---|
| _view_show_config |
---|
nopanel | true |
---|
|
- On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
|
, Action Settings section, toggle on Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
|
Auto Save- This will automatically save any changes made in the grid, however, it is possible to specify an action that goes beyond a simple save, such as, performing validation of input
- Click on the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
|
and in the View Attributes section, double-click any attributes you want to make editable editable to open the View Attribute- Alternatively,
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
the Properties and click the attribute header in the grid to open the View Attribute
- In the Grid Settings section for each attribute, untick Read Only
- all changes
To test
, Insert excerpt |
---|
_lock | _lock | nopanel | true |
the screen and double-click on a cell for the attribute you modified - the cell can be typed into and changed Tip |
Relational attributes the in-grid editing, double click your data and make a change, then click outside the cell to trigger save. If your data contains relational attributes, these will appear as a drop down list
. Adding non-primary table attributes from a related table onto the form will be added as Read-Only by defaultClick outside of the cell to save the changeswhen Read Only is disabled.
Insert excerpt |
---|
| Creating a Grid |
---|
| Creating a Grid |
---|
name | autosave |
---|
nopanel | true |
---|
|
Adding an Actionflow to the Auto Save Action
The auto save action can be extended with the addition of an Actionflow.
- On a grid, open the view configuration
- On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
|
, Action Settings section, if Auto Save has been toggled on, an Auto Save Action Method option appears Choose
Insert excerpt |
---|
| _actionflow |
---|
| _actionflow |
---|
nopanel | true |
---|
|
- For the Auto Save Actionflow, click the
Insert excerpt |
---|
| _addIcon |
---|
| _addIcon |
---|
nopanel | true |
---|
|
icon to create a new Actionflow or click the Insert excerpt |
---|
| _actionflow_icon |
---|
| _actionflow_icon |
---|
nopanel | true |
---|
|
icon to display a list of available Actionflows- Even though Auto Save has been enabled, the Auto Save Actionflow still requires a
Insert excerpt |
---|
| _action_save |
---|
| _action_save |
---|
nopanel | true |
---|
|
action node
Worked Example
Here's a worked example using the Shop the Retail Data (available from the Learning Centre).
In this example, we are using:
- A Shop Stock screen containing a grid of the Shop Stock data, a pie chart of the Shop Stock data and a grid of the Shop Departments data - this screen was created using the Multi-Tile template
Tip |
---|
If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Intermediate Application. For this example, we'll be working on the grid on the Shop Stock screen. |
GIF/SCREENSHOT OF FINISHED RESULT
Excerpt |
---|
|
In-Grid Editing for |
Stock an area to open a screen on clicking.ZB MY NOTES, DELETE: AUTOSAVE AND READ ONLY REMOVE FROM ATTRIBUTE 'ITEM TYPE'. ADD ACTIONFLOW TO CHECK FOR NUMBERS, FIELD ONLY ALLOWS STRINGS
On the screen where the Actionflow will be initiated from, Shop Stock, find the area, Split Area Top (use the a grid to automatically save changes made directly to the grid.
Image AddedOn the Shop Stock screen, open the
|
layerslayers) to open its propertiesOn a grid, open the view configuration by right-clicking and selecting configuration for the Departments grid - On the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
nopanel | true |
---|
| , in the View Attributes section, double-click the attribute, departmentName - In the Grid Settings section, untick Read Only
|
view_show_config_view_show_config- the View Attribute settings
- On the
Insert excerpt |
---|
| _action_view |
---|
| _action_view |
---|
nopanel | true |
---|
|
|
On Click on the - configuration, click on the
Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | action |
---|
nopanel | true |
---|
| , and in the Action Settings section, toggle on Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
| Auto Save
|
This will automatically save any changes made in the grid, however, it is possible to specify an action that goes beyond a simple save, such as, performing validation of input_property_tabs_propertytabsnopanel | true |
and in the View Attributes section, double-click any attributes you want to make editable In the Grid Settings section for each attribute, untick Read Only Insert excerpt |
_- all changes
- To test, the screen and double-click on
|
a for the attribute you modified - the cell can be typed into and changed Tip |
Relational attributes will appear as a drop down list. Adding non-primary table attributes from a related table onto the form will be added as Read-Only by default- in the Departments grid, then make a change
Click outside of the cell to save the
|
changeslick the Insert excerpt |
---|
_addIcon | _addIcon | nopanel | true |
icon to create a new Actionflow or click the Insert excerpt |
---|
_actionflow_icon | _actionflow_icon | nopanel | true |
icon to display a list of available Actionflows1.02 Actionflow Principles Insert excerpt |
---|
Creating a Grid | Creating a Grid | name | autosave |
---|
nopanel | true |
---|
Adding an Actionflow
On a grid, open the view configurationOn the Insert excerpt |
---|
_property_tabs | _property_tabs | name | action |
---|
nopanel | true |
, Action Settings section, if Auto Save has been toggled on, an Auto Save Action Method option appearsChoose Insert excerpt |
---|
_actionflow | _actionflow | nopanel | true |
For the Auto Save Actionflow, c Expand |
---|
| Image Added |
|
Note: For a worked example of specifying an Actionflow to be used by the Auto Save, see Gateway Action Configuration.
Image Added
HTML Comment |
---|
|
further reading - creating test data |