Repository.DataWarehouse.SaveRawDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
  RDSet.AddDataRow(RD)
  RDSet.AddDataRow(RD)
  '{{APIComment|Save the raw data to the Synthesis repository.}}
  '{{APIComment|Save the raw data to the Synthesis repository.}}
  {{APIPrefix|Dim SuccessSaveRawData As Boolean
  {{APIPrefix|Dim}} SuccessSaveRawData {{APIPrefix|As Boolean}}
         SuccessSaveRawData = MyRepository.[[Repository.SaveRawDataSet|SaveRawDataSet]](RDSet)
         SuccessSaveRawData = MyRepository.[[Repository.SaveRawDataSet|SaveRawDataSet]](RDSet)



Revision as of 16:39, 18 October 2013


Adds a raw data set

Method Syntax

SaveRawDataSet( ByVal DataSet As RawDataSet) As Boolean
Saves the raw data set in the repository.

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)

Reformatted 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)