...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<edit:config id="custom.edit"> <entity>graffiti</entity> <label>Grafitti</label> <description>Report graffiti for removal</description> <supportedGeometry>point</supportedGeometry> <requiredGeometry>point</requiredGeometry> <parameter id="description" label="Description" controlType="text-area" column="DESCRIPTION"/> </edit:config> <edit:audit id="custom.audit"> <edit>custom.edit</edit> <datasource>datasource.main</datasource> <table>EDIT_AUDIT</table> <parameter column="ID" value="id()"/> <parameter column="USERID" value="userid()"/> <parameter column="MODIFIED" value="datetime()"/> </edit:audit> |
Starting from a URL
The edit process can be started by including either a 'create' or an 'edit' parameter as part of the url when starting the client
Code Block |
---|
http://localhost:8080/weave/edit.html?create=custom.edit |
create
will initiate the creation of a new entity, using the configuration specified by the value of the create
parameter.
Code Block |
---|
http://localhost:8080/weave/edit.html/edit=custom.edit?id=1234 |
edit
will initiate the editing of an existing entity, using the configuration specified by the value of the edit
parameter and using the entity identified by the id
parameter. Also, the client will zoom to the extent of the selected entity.
Both of these URL's also allow you to specify values to be used for the parameter in the edit.
Code Block |
---|
http://localhost:8080/weave/edit.html?create=custom.edit&description=Type%20your%20description%20here |
TO BE DONE
- More examples
- Writing values to a separate database table
- Starting the Weave client with a url