Configuring the AeCaller.js File - Configuring the AeCaller.js File - OnBase - Intagration for Cityworks - OnBase/Intagration-for-Cityworks/English/Foundation-22.1/Integration-for-Cityworks-Server/Installation/Installation-for-Cityworks-Office-Integration/Install-the-Application-Enabler/Cityworks-Application-Enabler-Setup/Configuring-the-AeCaller.js-File - English - Foundation 22.1

Integration for Cityworks Server

Platform
OnBase
Product
Intagration for Cityworks
Release
Foundation 22.1
License
Premier
Standard
Essential
ft:lastPublication
2022-08-18T23:12:19.546000
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.