Repository.DataWarehouse.SaveRawDataSet: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:




<onlyinclude>Adds a new data collection to a Synthesis repository's Synthesis Data Warehouse (SDW). Returns a '''Boolean''' value; when true, indicates a successful save.</onlyinclude>
<onlyinclude>Adds a new Synthesis Data Warehouse (SDW) data collection to an associated Repository object. Returns a '''Boolean''' value; when true, indicates a successful save.</onlyinclude>


== Syntax ==
== Syntax ==
Line 9: Line 9:
=== Parameters ===
=== Parameters ===
''DataSet''
''DataSet''
:Required. The [[RawDataSet Class|RawDataSet]] object to be added.
:Required. The [[RawDataSet Class|RawDataSet]] object, which represents a Synthesis Data Warehouse (SDW) data collection.


== Example ==
== Example ==
  '''VBA'''  
  '''VBA'''  
   
   
  {{APIComment|'Add code to connect to a Synthesis repository.}}
  {{APIComment|'Declare a new Repository object and connect to a Synthesis repository.}}
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
{{APIComment|...}}
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}})
   
   
  {{APIComment|'Add code to create and populate a new data collection.}}
{{APIComment|'Add code to create and populate a new data collection.}}
  {{APIPrefix|Dim}} RDSet {{APIPrefix|As New}} RawDataSet
  {{APIPrefix|Dim}} RDSet {{APIPrefix|As New}} RawDataSet
{{APIComment|...}}
  {{APIComment|...}}
   
   
  {{APIComment|'Add the data collection to the repository's SDW.}}  
  {{APIComment|'Add the data collection to the repository's SDW.}}  
  {{APIPrefix|Call}} MyRepository.DataWarehouse.SaveRawDataSet(RDSet)
  {{APIPrefix|Call}} MyRepository.DataWarehouse.SaveRawDataSet(RDSet)


  '''VB.NET'''  
  '''VB.NET'''  
   
   
  {{APIComment|'Add code to connect to a Synthesis repository.}}
  {{APIComment|'Declare a new Repository object and connect to a Synthesis repository.}}
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
{{APIComment|...}}
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}})
   
   
  {{APIComment|'Add code to create and populate a new data collection.}}
{{APIComment|'Add code to create and populate a new data collection.}}
  {{APIPrefix|Dim}} RDSet {{APIPrefix|As New}} RawDataSet
  {{APIPrefix|Dim}} RDSet {{APIPrefix|As New}} RawDataSet
  {{APIComment|...}}
  {{APIComment|...}}
   
   
  {{APIComment|'Add the data collection to the repository's SDW.}}  
  {{APIComment|'Add the data collection to the repository's SDW.}}  
  MyRepository.DataWarehouse.SaveRawDataSet(RDSet)
  MyRepository.DataWarehouse.SaveRawDataSet(RDSet)

Revision as of 16:39, 8 April 2016

APIWiki.png


Member of: SynthesisAPI.Repository


Adds a new Synthesis Data Warehouse (SDW) data collection to an associated Repository object. Returns a Boolean value; when true, indicates a successful save.

Syntax

.DataWarehouse.SaveRawDataSet(DataSet)

Parameters

DataSet

Required. The RawDataSet object, which represents a Synthesis Data Warehouse (SDW) data collection.

Example

VBA 

 'Declare a new Repository object and connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")

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

 'Add the data collection to the repository's SDW.  
  Call MyRepository.DataWarehouse.SaveRawDataSet(RDSet)
VB.NET 

 'Declare a new Repository object and connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")

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

 'Add the data collection to the repository's SDW.  
  MyRepository.DataWarehouse.SaveRawDataSet(RDSet)