Repository.DataWarehouse.SaveRawDataSet: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Declare a new repository connection class.}} | {{APIComment|Declare a new repository connection class.}} | ||
Private WithEvents MyRepository As [[New Repository]] | Private WithEvents MyRepository As [[New Repository]] |
Revision as of 21:44, 5 March 2014
Returns True if successful, otherwise returns False.
Syntax
- SaveRawDataSet( DataSet As RawDataSet ) As Boolean
Parameters:
- DataSet: The raw data object.
Usage Example
Declare a new repository connection class.
Private WithEvents MyRepository As New Repository
Connect to the Synthesis repository.
Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
Declare and populate a RawData object and a RawDataSet. In this example, the first Incident information is used.
Dim RD As New RawData ( Populate relevant RawData variables in RD. ) Dim RDSet As New RawDataSet RDSet.AddDataRow(RD)
Save the raw data to the Synthesis repository.
Dim SuccessSaveRawData As Boolean SuccessSaveRawData = MyRepository.SaveRawDataSet(RDSet)