LINK_FIELD (Link Field Tool)
The parameter activetools=LINK_FIELD displays the Link Field Tool.
After the tool has been activated, features can be marked by clicking on the map. After each click, the toolbar is displayed.
Mark feature(s) for linking
To activate a selection of marked features, the Submit Selection button in the tool bar must be confirmed.
If the condition (value of the targetkeyvalue parameter) is fulfilled, the feature (or several features) will be included in the selection.
Finally, the selection can be confirmed by clicking the Link Selection button and the editing process will be performed. A green message appears with the corresponding information.
Notes:
The current process can be canceled by clicking the Cancel button.
The value of the targetkeyvalue can be deleted by clicking the Unlink Selection button.
Successful editing of the feature
If, on the other hand, the condition (value of the targetkeyvalue parameter) is not fulfilled, the feature (or several features) cannot be included in the selection for the editing process. This is recognizable by the warning message.
Unsuccessful editing of the feature (requirements not fulfilled)
Notes:
The edit layer must be also configured as a search layer in the WebOffice project configuration and both layers must have the same feature class as data source.
The value for the target key value parameter must match the value from the target attribute table of the feature to be edited (or be empty) so that this feature can be edited. Otherwise, a corresponding warning message will be displayed in the client.
To use this tool in the WebOffice map widget, the following parameters are required:
Input parameters |
Description |
query_linkfield_mw |
External search ID of the respective WebOffice 10.9 R4 query layer. Note: The layer must be identifiable/selectable. |
keyname_linkfield_mw |
Unique key field of the layer (e.g. OBJECTID). Note: The key name is the technical field name (not the alias) and must be configured as a Search Field. |
keyvalue_linkfield_mw |
Optional parameter for performing an initial search. Note: The result of this search is checked for validity at tool start. |
editlayerid |
External layer ID of the affected WebOffice 10.9 R4 edit layer. |
targetkeyname |
This parameter defines the key attribute (field name) of the object to be edited. Note: The target key name is the technical field name (not the alias) and must be configured as a Search Field. |
targetkeyvalue |
This parameter defines the key value of the object to be edited. Notes: Be sure to write the values correctly. |
callback_linkfield_mw |
Specifies the JavaScript callback function. |
startmode=FIELD (optional) |
By activating the parameter, the tool will be activated initially after the Map Widget update. Note: The parameter startmode can only be activated for one tool at a time. |
Description of parameters
Example:
https://server.domain.com/WebOffice/client_mapwidget/default.jsp?baseURL=https://server.domain.com/WebOffice&project=WOSP_linkfield&view=editing&basemapview=cadaster&map_adv=true&activetools=LINK_FIELD&targetkeyname=HERKUNFT&targetkeyvalue=AUT&query_linkfield_mw=search_editplots&keyname_linkfield_mw=OBJECTID&callback_linkfield_mw=parent.linkfieldResult&editlayerid=edit_plots