Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
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
, Action Settings section, toggle onInsert excerpt _property_tabs _property_tabs name action nopanel true
Auto SaveInsert excerpt _toggle_on _toggle_on nopanel true - 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
and in the View Attributes section, double-click any attributes you want to make editable editable to open the View AttributeInsert excerpt _property_tabs _property_tabs nopanel true - Alternatively,
the Properties and click the attribute header in the grid to open the View AttributeInsert excerpt _finish _finish nopanel true
- Alternatively,
- In the Grid Settings section for each attribute, untick Read Only
all changesTo test,Insert excerpt _save _save nopanel true Insert excerpt _lock _lock the screen and double-click on a cell for the attribute you modified - the cell can be typed into and changednopanel true
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 |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Adding an Actionflow
- On a grid, open the view configuration
- On the
, Action Settings section, if Auto Save has been toggled on, an Auto Save Action Method option appearsInsert excerpt _property_tabs _property_tabs name action nopanel true Choose
Insert excerpt _actionflow _actionflow nopanel true - For the Auto Save Actionflow, click the
icon to create a new Actionflow or click theInsert excerpt _addIcon _addIcon nopanel true
icon to display a list of available ActionflowsInsert excerpt _actionflow_icon _actionflow_icon nopanel true
Worked Example
Here's a worked example using the Shop 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
In-Grid Editing for Stock Data
Configure 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 thea grid to save changes made directly to the data in the grid.
On the Shop Stock screen, open the view configuration for the Available Stock grid
- On the
layersInsert excerpt _
layersproperty_tabs _property_
) to open its propertiestabs nopanel true
On a grid, open the view configuration by right-clicking and selectingInsert excerpt _view_show_config _view_show_config On in the View Attributes section, double-click the attribute, itemTypenopanel true - In the Grid Settings section, untick Read Only
- Click on the
, Action Settings section, toggle onInsert excerpt _property_tabs _property_tabs name action nopanel true
Auto SaveInsert excerpt _toggle_on _toggle_on nopanel true - 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 and in the View Attributes section, double-click any attributes you want to make editablenopanel true - In the Grid Settings section for each attribute, untick Read Only
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|