Repository.DataWarehouse.SaveRawDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
{{Template:Repository.SaveRawDataSet.Cmt}}
{{Template:Repository.SaveRawDataSet.Cmt}}
== Method Syntax==
{{APIName|Public Function '''SaveRawDataSet'''(}}
{{APIPrefix|ByVal}}
{{APIName|DataSet}}
{{APIName|As [[RawDataSet Class|RawDataSet]])}}
{{APIPrefix|As Boolean}}<br>


== Parameters ==
== Syntax ==
'''DataSet'''
*SaveRawDataSet( DataSet As [[RawDataSet Class|RawDataSet]] ) {{APIPrefix|As Boolean}}
{{APIComment|The raw data object.}}
 
Parameters:
:''DataSet'': The raw data object.


== Usage Example ==
== Usage Example ==

Revision as of 20:28, 27 February 2014


Syntax

  • SaveRawDataSet( DataSet As RawDataSet ) As Boolean

Parameters:

DataSet: The raw data object.

Usage Example

Code Block

' Declare a new repository connection class. 
Private WithEvents MyRepository As New Repository
' Connect to the Synthesis repository. 
DimSuccessAs Boolean=False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
' Declare and populate a RawData object and a RawDataSet. In this example, the first Incident information is used. 
DimRDAs New RawData
' (Populate relevant RawData variables in RD.) 
DimRDSetAs New RawDataSet
 RDSet.AddDataRow(RD)
' Save the raw data to the Synthesis repository. 
DimSuccessSaveRawDataAs 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)