After installation, the widget must be configured. To configure the widget, follow these steps:
- Open the configuration file in a text editor such as Notepad. The configuration file is usually named Desktop.json.js.
- Inside the configuration file, locate the modules array for the application. The modules array appears directly after the libraries array.
-
Insert the following code into the modules array. As a best practice, the code should be inserted just after the Log module:
, { "moduleName": "OnBase", "moduleType": "hyland.modules.onbase.OnBaseModule", "libraryId": "OnBase", "configuration": {}, "views": [ { "id": "OnBaseView", "viewModelId": "OnBaseViewModel", "visible": false, "markup": "OnBase/OnBaseView.html", "type": "hyland.modules.onbase.OnBaseView", "region": "MiddleRightMapRegion", "configuration": {} } ], "viewModels": [ { "id": "OnBaseViewModel", "type": "hyland.modules.onbase.OnBaseViewModel", "configuration": { "ob-service-url": "https://[ServerName]/[ObGisWebApi]", "custom-js-path": "https://[ServerName]/[ObGisWebApi]/Scripts/API", "send-to-onbase-command": true, "send-to-onbase-automatically": true, "send-to-onbase-source-names": ["identify", "querybuilder"] } } ] },
Note:Ensure that you include the leading and trailing commas.
- Replace the URL for the ob-service-url property with your the URL of your OnBase GIS Service. This consists of the OnBase GIS Service server name and instance.
- If necessary, update the value of the custom-js-path property to be the address to the JavaScript files you copied in Install the Widget. It is possible to use either an absolute or a relative path for this property.
- Set the send-to-onbase-command property to either true or false, depending on whether or not results from Geocortex operations will be sent to the OnBase Widget using the "SendToOnBase" command. A button can be configured to execute the "SendToOnBase" command (takes no parameter), and can be placed in any configurable location in the Viewer using Essentials. See the Geocortex documentation for more information on configuring buttons and commands.
- Set the send-to-onbase-automatically property to either true or false, depending on whether or not results from Geocortex operations should be automatically be sent to the OnBase widget. The benefit to sending results to the Widget automatically is that it requires no additional button configuration and therefore no additional click to execute the "SendToOnBase" command. Following a Geocortex Identify or Query operation, as two examples, the OnBase Widget will automatically refresh to provide an updated list of results based on what is selected through the Geocortex application.
- Set the send-to-onbase-source-names property to an array that includes the Geocortex operations targeted for sending results to the OnBase Widget. See the developer API documentation on possible featureSetCollection.sourceName values for more information. The default value of ["identify", "querybuilder"] allows results from Geocortex Identify or Query operations to be sent to the OnBase Widget.
- Save and close the configuration file.