Class DataExchange
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class is the main object for creating and importing data exchange files.
public class DataExchange : PolarWeakEventListener
- Inheritance
-
DataExchange
- Implements
- Inherited Members
- Extension Methods
Fields
AutoImportAllExplicitlyExportedRecords
Gets/sets to automatcally import all explicitly exported records in the import file.
public bool AutoImportAllExplicitlyExportedRecords
Field Value
ImportPolicy_AutomaticRecords_ImportMissing
Gets/sets to import missing records that are in not-user-selectable tables and are part of related GetParent() records that are imported.
public bool ImportPolicy_AutomaticRecords_ImportMissing
Field Value
ImportPolicy_AutomaticRecords_UpdateExisting
Gets/set to update records that are in not-user-selectable tables and are part of related GetParent() records that are imported.
public bool ImportPolicy_AutomaticRecords_UpdateExisting
Field Value
ImportPolicy_RequiredRecords_UpdateExisting
Gets/sets to update records that are required to import other records.
public bool ImportPolicy_RequiredRecords_UpdateExisting
Field Value
ImportPolicy_SelectedRecords_UpdateExisting
Gets/sets to import records explicitly selected by the user.
public bool ImportPolicy_SelectedRecords_UpdateExisting
Field Value
Properties
DataExchangeTables
Returns the tables that apply for data exchange.
public DataExchangeTables DataExchangeTables { get; }
Property Value
DataExchangeVersion
The version of the data exchange.
public double DataExchangeVersion { get; }
Property Value
Engine
Returns the Engine.
public BudaEngine Engine { get; set; }
Property Value
FormMode
The form mode. Used internally.
public string FormMode { get; set; }
Property Value
ImportRootNode
Returns the root xml node of the import file.
public XmlNode ImportRootNode { get; }
Property Value
SelectedTable
The current selected table. Used internally.
public string SelectedTable { get; set; }
Property Value
Methods
CreateHTML(Context)
Creates the html to show the user interface. Used internally.
public string CreateHTML(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- string
The html
DoAction(Context, string)
Performs an action. Used internally.
public string DoAction(Context pContext, string pAction)
Parameters
Returns
- string
A message.
DownloadData(Context)
Will download the data in the web session of the given context.
public string DownloadData(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- string
An error message if applicable.
GetBlob(Context)
Helper to download data.
public string GetBlob(Context pContext)
Parameters
pContext
Context
Returns
GetExportXML(Context, ref string)
This method gets the xml with the export data.
public string GetExportXML(Context pContext, ref string pErrorMessage)
Parameters
pContext
ContextThe context.
pErrorMessage
stringThis by-ref parameter is set to an error message if applicable.
Returns
- string
A unicode string containing the xml.
IncludeTableInDataExchange(Context, repTable)
This method returns True if the specified table is to be included in the data exchange.
public bool IncludeTableInDataExchange(Context pContext, repTable pTableSettings)
Parameters
Returns
- bool
A boolean indicating the table is to be included.
PerformImportAndUpdates(Context, ref string)
This method performs the import and updates.
public string PerformImportAndUpdates(Context pContext, ref string pLogResult)
Parameters
pContext
ContextThe context.
pLogResult
stringThis by-ref string will contain the full log of the result of the import and updates.
Returns
- string
An error message if applicable.
SetImportFile(Context, string, string)
This method sets the import file (both the name and the data).
public string SetImportFile(Context pContext, string pFileName, string pFileData)
Parameters
pContext
ContextThe context.
pFileName
stringThe name of the file.
pFileData
stringThe xml file data as unicode string.
Returns
- string
An error message if applicable.