When upgrading DriveWorks to a new version, it is important to ensure the latest Integration Theme example files will be used.
This is because as the DriveWorks code changes, the examples are adapted to be the most effective and use the most up to date versions of the API.
This document outlines the process for upgrading the DriveWorks Live Integration Theme.
This is located at %ProgramData%\DriveWorks\[version]\Live\Themes\Integration
Also back up any existing examples if customizations have been made.
Copying the files to a new location is sufficient for the back up, and will help when replicating any customizations into the new version files (step 3 below).
Once the back up is done, uninstall the old version of DriveWorks and then install the new version.
Select Stage 1: Live, select Theme from the command bar.
Step through the wizard for the Integration Theme, select a new folder path, or use the existing folder to overwrite the old files.
Ensure Copy Client SDK Examples to this folder is selected.
Copy the customizations from the back up files (step 1 above) into the new version files.
If using or creating custom code in the examples, we recommend not changing the code already present in the example file.
Instead, create the functions and call these where required. With the exception of editing existing method parameters.
Locate and open the DriveWorksConfigUser.xml file.
If the DriveWorks Live wizard was used the DriveWorksConfigUser.xml file will exist.
If not, copy DriveWorksConfig.xml and rename it DriveWorksConfigUser.xml.
Copy and paste the connection strings and parameters from previous version DriveWorksConfigUser.xml into this versions file.
Ensure that the <staticFilesPath> is also looking at the folder containing the new examples.
If using multiple sites in IIS, ensure that the site hosting the example files are also pointing to the folder with the new example files.
Recycle the Application Pool and restart the site to clear any cached files.
We also recommend clearing cache in the browser, this can be done with Ctrl + F5 in most browsers.
Knowledge Base Article Ref: | KB24011601 |
---|