Configuring the AeCaller.js File - Configuring the AeCaller.js File - Integration for Cityworks - Foundation 25.1 - Foundation 25.1 - Ready - OnBase - Premier - external - Standard - Essential - Premier - Standard - Essential - OnBase/Integration-for-Cityworks/Foundation-25.1/Integration-for-Cityworks-Server/Installation/Installation-for-Cityworks-Office-Integration/Install-the-Application-Enabler/Cityworks-Application-Enabler-Setup/Configuring-the-AeCaller.js-File - 2025-03-17

Integration for Cityworks Server

Platform
OnBase
Product
Integration for Cityworks
Release
Foundation 25.1
License
Premier
Standard
Essential
ft:locale
en-US

To configure the AeCaller.js file to work with the required Cityworks layout and the appropriate OnBase Document Types and Keyword Types:

  1. Open the AeCaller.js file in a text editor such as Notepad.
  2. Find or add an if statement for the QueryType that is sent from the button on the Layout Manager XML. For example: if(QueryType == 'WorkOrderQuery')
  3. Edit the if statement code section to use the appropriate Document Type IDs, Document Type Names, Keyword Type IDs, and Keyword Type Names for your solution. For example:

    scrapeURIXML += '<DOCTYPE id="MyDocTypeID" name="MyDocTypeName" />';

    scrapeURIXML += '<KEYWORD id="MyKWID" name="MyKWName" value="';

  4. Save and close the AeCaller.js file.
    Note:

    It is considered a best practice to maintain backups of this file for use in future upgrades.

  5. Create a folder named OnBase in the WebSite folder of your Cityworks directory. For example: C:\inetpub\wwwroot\Cityworks\WebSite\xml\Default.
  6. Copy the modified AECaller.js file and paste it into the OnBase folder.