Namespace: Consultingwerk.SmartFramework.Tools.Import
Class 
GenericDataImporter Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:GenericDataImporter
Purpose:Generic import routine for SmartDB data during upgrades
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Jun 24 12:03:24 CEST 2014
Notes:Can also be used for other tasks that require to import
data into a Business Entity from a ProDataset supporting
updates and creates depending on the availability of
records with matching PUK values



Top Method Summary
Options Name Purpose
+ Consultingwerk.SmartFramework.Tools.Import.ImportResult ImportBusinessEntityData (character, character, character) Imports Business Entity Data from an XML file
+ Consultingwerk.SmartFramework.Tools.Import.ImportResult ImportBusinessEntityData (character, handle, character) Imports Business Entity Data from an XML file
# OnStatusChanged (StatusChangedEventArgs) Raises the StatusChanged

Top Event Summary
Options Name Purpose
+ StatusChanged (Object, StatusChangedEventArgs) Raised to provide status updates

Top Property Summary
Options Name Purpose
+ LOGICAL Importing


Method Detail
Top

PUBLIC Consultingwerk.SmartFramework.Tools.Import.ImportResult ImportBusinessEntityData (character, character, character)

Purpose: Imports Business Entity Data from an XML file
Notes:

Parameters:
pcBusinessEntityName CHARACTER
The name of the Business Entity to import data from
pcFileName CHARACTER
The name of the source file name
pcSkipFields CHARACTER
The name of the fields to skip during import
Returns Consultingwerk.SmartFramework.Tools.Import.ImportResult
The number of records to export
Top

PUBLIC Consultingwerk.SmartFramework.Tools.Import.ImportResult ImportBusinessEntityData (character, handle, character)

Purpose: Imports Business Entity Data from an XML file
Notes: When importing from XML files, the caller of this routine should
retrieve the Business Entities ProDataset to import the XML data
into, e.g.: ServiceInterface:FetchDataset (pcBusinessEntityName, OUTPUT DATASET-HANDLE hDatasetImport) .

Parameters:
pcBusinessEntityName CHARACTER
The name of the Business Entity to import data from
phDatasetImport HANDLE
The handle of the ProDataset to import from
pcSkipFields CHARACTER
The name of the fields to skip during import
Returns Consultingwerk.SmartFramework.Tools.Import.ImportResult
The number of records to export
Top

PROTECTED OnStatusChanged (StatusChangedEventArgs)

Purpose: Raises the StatusChanged
Notes:

Parameters:
e Consultingwerk.StatusChangedEventArgs
The Consultingwerk.StatusChangedEventArgs with the data for the event


Event Detail
Top

PUBLIC StatusChanged (Object, StatusChangedEventArgs)

Purpose: Raised to provide status updates
Notes:

Parameters:
sender Progress.Lang.Object
The object that raised the StatusChanged event
e Consultingwerk.StatusChangedEventArgs
The Consultingwerk.StatusChangedEventArgs with the data for the event


Property Detail
Top

PUBLIC LOGICAL Importing


Returns LOGICAL


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:55:09