Repository.DataWarehouse.SaveRawDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 11: Line 11:


== Usage Example ==
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
{{APIComment|'Declare a new repository connection class.}}
        Private WithEvents MyRepository As [[New Repository]]
  Dim MyRepository As New Repository
 
 
{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|'Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
  Dim Success As Boolean = False
        Success = MyRepository.[[Repository.ConnectToRepository|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 Class|RawDataSet]]
  Dim RDSet As New [[RawDataSet Class|RawDataSet]]
        RDSet.AddDataRow(RD)
  RDSet.AddDataRow(RD)
 
 
{{APIComment|Save the raw data to the Synthesis repository.}}
{{APIComment|'Save the raw data to the Synthesis repository.}}
        Dim SuccessSaveRawData As Boolean
  Dim SuccessSaveRawData As Boolean
        SuccessSaveRawData = MyRepository.[[Repository.SaveRawDataSet|SaveRawDataSet]](RDSet)
  SuccessSaveRawData = MyRepository.[[Repository.SaveRawDataSet|SaveRawDataSet]](RDSet)

Revision as of 22:25, 23 May 2014


Returns True if successful, otherwise returns False.

To view an added data set in Weibull++ or RGA, choose Project > Synthesis > RDW to Folio.

Syntax

  • SaveRawDataSet( DataSet As RawDataSet ) As Boolean

Parameters:

DataSet: The raw data object.

Usage Example

 'Declare a new repository connection class. 
 Dim 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)