...
When performing an edit a view panel is required to enter/change the attributes associated with the entity being edited this . This view is provided by the com.cohga.client.panel.edit
view and so also needs to be added to the client configuration.
...
Before entities can be edited it must have at least one edit
associated with it , via a configuration item. There are currently two types of edit configurations available, a simple
one that infers the information it requires from the underlying spatial tables, and a custom
one in which you provided all of the details.
...
If you need more control over the attributes and geometry for an edit then you need to create a custom
edit.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="urn:com.cohga.server.config#1.0" xmlns:edit="urn:com.cohga.spatial.edit#1.0"> <edit:custom id="custom.edit"> <entity>graffiti</entity> <label>Custom Attributes</label> <description>Edit the attributes attached to the graffiti</description> <supportedGeometry>point</supportedGeometry> <requiredGeometry>point</requiredGeometry> <parameter id="description"> <promptText>Description</promptText> <controlType>text-box</controlType> <column>DESCRIPTION</column> </parameter> </edit:custom> </config> |