Background information:

In the WebOffice 10.9 R4 project configuration a JSP is configured as an Integration of External Application. Parameters are passed from WebOffice to the JSP.

The JSP collects the parameters and creates a SAP-file with the parameters.

 

icon_comment

The file generate_SAP_link_sample.jsp can be used to configure the JSP file, which has been implemented as an example and can be found in the following path of your WebOffice 10.9 R4 application: C:\Tomcat\webapps\<WebOffice-application>\pub\custom_pages\generate_SAP_link_sample.jsp

 

Open the file ..\pub\custom_pages\generate_SAP_link_sample.jsp and adjust the parameters accordingly. Please consider the notes in the comments.

Exemplary JSP file that is to be opened in SAP - no custom parameters are set yet

Exemplary JSP file that is to be opened in SAP - no custom parameters are set yet

 

The JSP is nearly equal to content of the SAP file, plus a section to receive the parameters at the beginning and a section to create a file and in the line Command fixed parameters are replaced by placeholders.

 

Basis:

For the following configuration steps the customized JSP file have to be placed inside the WebOffice application folder pub/custom_pages. The name of the JSP file can be adapted.

 

generate_SAP_link_sample.jsp >> for Cadaster / Plots, variable Field: Command

Configuration of an external application with the option Single Hit:

 

Configuration as an integration of external application in layer queries

Configuration as an integration of external application in layer queries

 

 

Configuration as an integration of external application in layer queries

Configuration as an integration of external application in layer queries

 

At the parameter Field – see the screenshot before  - the database field, which will be used fur the result file has to be configured.

Configuration as an integration of external application in layer queries

Configuration as an integration of external application in layer queries

 

 

Result in WebOffice GUI:

Connect SAP from WebOffice via button in layer result list in WebOffice core client

Connect SAP from WebOffice via button in layer result list in WebOffice core client

 

For each object an icon is available in layer result list.

The Tooltip is equal to the configured name of the application.

 

If a user clicks on an icon a file e.g. generate_SAP_link_sample.sap gets created.
If the file extension .sap is known in the environment the according action with the file gets performed, else a user gets a dialog to open or save the file.