Integrate Diagrams
Using multiple custom tools data can be displayed in WebOffice 10.9 R4 as charts for better decision making and information gathering. The total number of features, the number of features in the visible area and the sums of attributes can be displayed in the charts. The diagrams are integrated as a static custom tool.
Diagram based on the overall data of a map service
Before the custom tool can be integrated, the respective layer must be specified in the script: To do this, add the REST URL and the respective layer ID. If you do not know the REST URL, you can enter it as well as the layer ID in the ArcGIS Server Manager (Services > Functions). By clicking on the REST-URL you can find also the IDs of the layers.
REST-URL: You will find the respective REST-URL in the ArcGIS Server Manager. By clicking the REST-URL you will see a list of the Layer-IDs.
REST-URL: In the brackets you will find the respective layer ID
Adjust the variable layers in the script EsriCedarChart.htm in your Tomcat directory in the pub\custom_tools folder. The parameter id is only necessary if the services are secured. Change the parameters id and URL for the variable layers. It is important that the layer ID - in this case"/7" - is appended after the URL. |
Included is the EsriCedarChart.htm custom tool in WebOffice author standalone as a statistical custom tool. For this purpose, at Tools a node Web Integration: Generic Tool is created. Please see the configuration below. Enter the URL \pub\custom_tools\EsriCedarChart.htm at URL of external page. Once the tooltip name and the URL have been configured, a new sub-item (New > Static Custom Tool) must be created by right-clicking on the respective custom tool. Configuration in WebOffice author standalone
Representation in WebOffice core |
Representation in WebOffice core |
Diagrams for the output of the objects in the visible map area
The Custom Tool KPI_Number_of_Features.htm uses queries from WebOffice 10.9 R4 to display these queries in a pie chart. Open the custom tool C:\Tomcat\webapps\<WebOffice Application>\pub\custom_tools}KPI_Number_Of_Features.htm in any editor. For the variable layers at value enter the extcallid of the query to be displayed. The extcallid can be found in your WebOffice author standalone menu item Edit project > Layer Queries. You can also change colors and other parameters in the HTM file. Configuration of "KPI_Number_of_Features.htm" |
This custom tool is also integrated as Web-Integration: Generic tool. You will also find the configuration in the illustration below. Enter the URL \pub\custom_tools\KPI_Number_of_Features.htm at URL of external page. Once the tooltip name and the URL have been configured, a new sub-item (New > Static Custom Tool) must be created by right-clicking on the respective custom tool. Configuration in WebOffice author standalone |
Representation in WebOffice core |
Diagram based on the currently selected objects
The custom tool ChartJS.htm uses search queries from WebOffice 10.9 R4 and thus displays the currently selected object as a line chart or pie chart. To do this, open the custom tool C:\Tomcat\webapps\<WebOffice application>\pub\custom_tools\ChartJS.htm in any text editor. The configuration in wO Author overrides the (dummy) data specified in the script, so the ‘label’ and ‘data’ fields are not relevant. One of the following types can be selected for ‘type’: bar, doughnut, pie, line, polarArea and radar. You can also make colour adjustments in the HTM file. The following configurations are possible in WebOffice 10.9 R4: a)External linkage on a search result (or selection or identify), displayed as a line diagram b)Same configuration as (a) but for multiple selection c)External linkage on a search result (or selection or identify), visualisation as pie chart d)Same configuration as (c) but for multiple selection e)Custom tool that works like an Identify. After a single hit, the diagram is displayed immediately. After a multiple hit, a result selection appears followed by the diagram.
In WebOffice author standalone, a link to external applications must be configured on a search result view as follows: |
If option (e) has been configured, this custom tool is also integrated with the help of Web integration: generic tool. The configuration can also be found below. Include the \pub\custom_tools\ChartJS.htm in the configuration item URL of the external page. Once the tooltip name and the URL have been configured, right-click on the respective custom tool to create two new sub-items (New > Identify Custom Tool) and (New > Search result for Identify). |
a)Display via an external linkage on a search result
b)Display via the custom tool |