2.3 Methods

All methods report errors through the error properties. These properties are overwritten on each error, so only the latest error is available.

 Name  Type   Comment
 Import  Boolean

 Performs an import. All XML properties are imported into Handyman.

 The following properties can be filled with data:

  • XMLMessageList (warnings and errors from Export)
 ImportComplete  Void  Method that should be called after a successful import. This method is  telling the Handyman system that the import was successful.
 ImportInComplete  Void  Method that should be called when an import fails.
 ExportDataReady  Integer

 Return values:

  • 0 - No data to be exported exists
  • 1 - Data to be exported from Handyman exists
  • 2 - Sync is busy. This value will not be returned from Handyman version 7.7.2 or later.
 Export  Boolean  Return true if the export was successful.
 The following properties can be filled with data depending on the settings  in Handyman:
  • XMLOrderList (Always set)
  • XMLPurchaseOrderList
  • XMLStoreList (Invetory staus from client)
  • XMLStoreMovementList
  • XMLMessageList (warnings and errors from Export)
 If ReturnDOM property is 1, the following properties can be set:
  • DOMOrderList (Always set)
  • DOMPurchaseOrderList
  • DOMStoreList (Invetory staus from client)
  • DOMStoreMovementList
  • DOMMessageList  (warnings and errors from Export)
 ExportComplete  Void  Method that should be called after a successful export. This method will  update all status variables on exported elements.
 ExportInComplete  Void  Method that should be called when an export fails.
 Use the ExportInCompleteMessage property to send an error message to  the  Handyman log.
 Clean  Void  Use this method just before the object is disposed to make sure all  internal objects are disposed properly. Some developer tools does not  always make VisualBasic 6 controls behave as it should…

Other methods for Query and report fetching are described in later chapters.