Combined Grid
There is a powerful editor panel called the editor.panel.combinedgrid
. The power of this editor is that it allows both the creation of new non-spatial data for an entity, and the editing of existing non-spatial row data.
This can be shown by configuring the client to use the editor.panel.combinedgrid
panel to interact with the r.graffiti_visit
(related table) editor:
<view id="editor.panel.combinedgrid">
<label>Graffiti Visits</label>
<location>west</location>
<edit>r.graffiti_visit</edit>
<labelAlign>left</labelAlign>
<enableCreate>true</enableCreate>
<enableDelete>true</enableDelete>
</view>
Initially this looks like this:
We can then create a new visit record as follows. Note how when we press the Create button a new form appears below the line which allows for the data to be entered.
Which when we press Submit we get the following:
We can edit any record by selecting the record in the grid, which causes the record to appear in the form. In the form below we change the Visit Date from 2024-01-05 to 2024-01-06.
When Submit is pressed the grid record is updated:
To delete a visit record simply select a record in the grid (only one can be selected at a time) - the selected record will appear in the edit form below - then press the Delete button.
A confirmation dialog box will be displayed.
Pressing Yes will result in the following.
As can be seen, the combined editor is very powerful.