Extended Entity Editor Panel
Instead of an editor.panel.simplegrid
editor view control, the client can be configured to enable interaction with different editor types under the one tab.
<view id="editor.panel">
<label>Edit</label>
<location>west</location>
<edit>e.graffiti_address</edit>
<edit>r.graffiti_visit</edit>
</view>
In this example the r.graffiti_visit
editor is a related editor config for the graffiti
entity (the e.graffiti_address
editor is an entity editor config for graffiti
), and so the editor panel will display an address form and a graffiti visitor’s grid.
For the entity (address) panel the existing (displayed) data can be edited in place and committed to the database via the Submit button which causes the existing record to be replaced. If no address record exists for an entity the panel’s entries will be blank: entering data and pressing Submit will cause a new record to be created in the database.
The Create button for the visit data will cause a new data entry form to appear. Entering data and pressing Submit will cause a new record to be committed to the database and the visit grid updated to show the new record.
Create Button Showing Input Form
|
|
If an existing record appears in the Visit grid, it can be updated by selecting the row, pressing Update, entering the new data and pressing Submit.
|
|