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:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}}
{{Template:Repository.SaveRawDataSet.Cmt}}  


To view an added data set in Weibull++ or RGA, choose '''Synthesis Data Warehouse''' from Home menu.
 
<onlyinclude>Saves a new [[RawDataSet Class|RawDataSet]] object, which represent a Synthesis Data Warehouse (SDW) data collection, to the repository. Returns a '''Boolean''' value; when true, indicates a successful save.</onlyinclude>


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


{{Template:BooleanReturn.Cmt}}
=== Parameters ===
''DataSet''
: The [[RawDataSet Class|RawDataSet]] object to be added. (Required)


== Usage Example ==
== Example ==
  {{APIComment|'Declare a new repository connection object.}}
'''VBA|VB.NET'''
  Dim MyRepository As New Repository
 
  {{APIComment|'Add code to connect to a Synthesis repository.}}
  {{APIComment|'Connect to the Synthesis repository.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  Dim Success As Boolean = False
  {{APIComment|...}}
   Success = MyRepository.[[Repository.ConnectToRepository|ConnectToRepository]]("RepositoryFileNamePath")
 
   {{APIComment|'Add code to create and populate a new SDW data collection.}}
{{APIComment|'Declare and populate a [[RawData Class|RawData]] object and a [[RawDataSet Class|RawDataSet]].}}
  {{APIPrefix|Dim}} RDSet {{APIPrefix|As New}} RawDataSet
{{APIComment|'In this example, the first Incident information is used.}}
{{APIComment|...}}
  Dim RD As New [[RawData Class|RawData]]
  {{APIComment|'<Populate relevant RawData variables in RD.>}}
  {{APIComment|'Save the data collection to the Synthesis repository. The data will be visible in the Synthesis repository upon refresh.}}  
  Dim RDSet As New [[RawDataSet Class|RawDataSet]]
   {{APIPrefix|Call}} MyRepository.DataWarehouse.SaveRawDataSet(RDSet)
  RDSet.AddDataRow(RD)
 
  {{APIComment|'Save the raw data to the Synthesis repository.}}
   Dim SuccessSaveRawData As Boolean
  SuccessSaveRawData = MyRepository.DataWarehouse.SaveRawDataSet(RDSet)

Revision as of 21:35, 23 July 2015

APIWiki.png


Member of: SynthesisAPI10.Repository


Saves a new RawDataSet object, which represent a Synthesis Data Warehouse (SDW) data collection, to the repository. Returns a Boolean value; when true, indicates a successful save.

Syntax

.DataWarehouse.SaveRawDataSet(DataSet)

Parameters

DataSet

The RawDataSet object to be added. (Required)

Example

VBA|VB.NET 

 'Add code to connect to a Synthesis repository. 
  Dim MyRepository As New Repository
 ... 

  'Add code to create and populate a new SDW data collection. 
 Dim RDSet As New RawDataSet
 ... 

 'Save the data collection to the Synthesis repository. The data will be visible in the Synthesis repository upon refresh.  
 Call MyRepository.DataWarehouse.SaveRawDataSet(RDSet)