Downloading Documents On Demand

The On Demand Document Download feature provides a way to provide access to documents stored in Archibus without including the document data in the standard mobile sync process. Synchronizing large documents or large numbers of documents can result in log sync times. The On Demand Download feature provides a method to access the document on the mobile device at any time if a network connection is available.

When the On Demand Download feature is enabled the document will be displayed with a Download icon displayed as shown

OnDemanDownloadBefore.png

After the document is downloaded to the device the Download icon will switch to a Refresh icon as shown

OnDemandDownloadAfter.png

The downloaded document is stored in the device file system and is available for display if the device is offline. The Refresh action will check out the latest version of the document from Web Central and update the copy of the document stored on the device.

Note: The On Demand Download feature makes use of features that are only available on physical devices. The On Demand Download feature is not available when running the Archibus Mobile apps in the Desktop environment.

Enabling On Demand Document Download

The On Demand Document Download feature is enabled by setting the configuration values of the Store class that manages the document data on the mobile client.

Example

To enable the On Demand Document Download feature for the Assessment app's Condition Assessment table:

Add the following to the config object in the ConditionAssessment.store.ConditionAssessment class

// Properties for the On Demand Download function. The Condition Assessment app can be configured to download // documents on demand. // Set the includeDocumentDataInSync property to false to enable the On Demand Document download feature. includeDocumentDataInSync: false, documentTable: 'activity_log', documentTablePrimaryKeyFields: ['activity_log_id'],