Repository.DataWarehouse.SaveRawDataSet: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
John Leavitt (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
== Usage Example == | == Usage Example == | ||
'{{APIComment|Declare a new repository connection class.}} | '{{APIComment|Declare a new repository connection class.}} | ||
{{APIPrefix|Private WithEvents MyRepository As New Repository}} | |||
'{{APIComment|Connect to the Synthesis repository.}} | '{{APIComment|Connect to the Synthesis repository.}} | ||
{{APIPrefix|Dim}} Success {{APIPrefix|As Boolean}} = {{APIPrefix|False}} | |||
Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") | Success = MyRepository.[[Repository.ConnectToRepository|ConnectToRepository]]("RepositoryFileNamePath") | ||
'{{APIComment|Declare and populate a [[RawData Class|RawData]] object and a [[RawDataSet Class|RawDataSet]]. In this example, the first Incident information is used.}} | '{{APIComment|Declare and populate a [[RawData Class|RawData]] object and a [[RawDataSet Class|RawDataSet]]. In this example, the first Incident information is used.}} | ||
{{APIPrefix|Dim}} RD {{APIPrefix|As New}} [[RawData Class|RawData]] | |||
'({{APIComment|Populate relevant RawData variables in RD. }}) | '({{APIComment|Populate relevant RawData variables in RD. }}) | ||
{{APIPrefix|Dim}} RDSet {{APIPrefix|As New [[RawDataSet Class|RawDataSet]]}} | |||
RDSet.AddDataRow(RD) | |||
=== Reformatted Usage Example=== | === Reformatted Usage Example=== | ||
Line 31: | Line 31: | ||
{{APIComment|Connect to the Synthesis repository.}} | {{APIComment|Connect to the Synthesis repository.}} | ||
Dim Success As Boolean = False | Dim Success As Boolean = False | ||
Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") | Success = MyRepository.[[Repository.ConnectToRepository|ConnectToRepository]]("RepositoryFileNamePath") | ||
{{APIComment|Declare and populate a [[RawData Class|RawData]] object and a [[RawDataSet Class|RawDataSet]]. In this example, the first Incident information is used.}} | {{APIComment|Declare and populate a [[RawData Class|RawData]] object and a [[RawDataSet Class|RawDataSet]]. In this example, the first Incident information is used.}} | ||
Dim RD As New [[RawData Class|RawData]] | Dim RD As New [[RawData Class|RawData]] | ||
({{APIComment|Populate relevant RawData variables in RD. }}) | ({{APIComment|Populate relevant RawData variables in RD. }}) | ||
Dim RDSet As New RawDataSet | Dim RDSet As New [[RawDataSet Class|RawDataSet]] | ||
RDSet.AddDataRow(RD) | RDSet.AddDataRow(RD) | ||
Revision as of 16:31, 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)
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)