LoadCalcRules

Scans or loads a rules file from a client computer.

LoadCalcRules returns Booleans that indicate whether validation errors, validation warnings, and validation information were included in the log file.

To validate whether rules in a file violate the referential integrity of any intercompany transactions, use LoadCalcRules2.

Note:

You must call SetSession before calling LoadCalcRules. SetSession points to the application for which rules are being loaded.

Syntax

<HsvRulesLoadACV>.LoadCalcRules bstrClientFilename, bstrLogFilename, vbScanOnly, pvbErrorsWereFound, pvbWarningsWereFound, pvbInfoWasProvided

Argument

Description

bstrClientFilename

String (ByVal). The name and path of the file containing the rules to be loaded or scanned. The path must be valid for the client computer.

For details on the file’s required format, see the Oracle Hyperion Financial Management, Fusion Edition Administrator's Guide.

bstrLogFilename

String (ByVal). The name and path of the log file for the load or scan operation.

vbScanOnly

Boolean (ByVal). A flag that specifies whether to load or scan the rules file. Pass TRUE to scan, FALSE to load.

pvbErrorsWereFound

Boolean. Indicates whether LoadCalcRules included any validation errors in the log file. Returns TRUE if errors were found, FALSE otherwise.

pvbWarningsWereFound

Boolean. Indicates whether LoadCalcRules included any validation warnings in the log file. Returns TRUE if warnings were found, FALSE otherwise.

pvbInfoWasProvided

Boolean. Indicates whether LoadCalcRules included any information not classified as errors or warnings in the log file. Returns TRUE if non-error and non-warning information was included, FALSE otherwise.

Example

The following example loads rules into an application.

Dim cHsvRulesLoadACV As HsvRulesLoadACV, bErr As Boolean
Dim bSession As Boolean, bWarn As Boolean, bInfo As Boolean
Set cHsvRulesLoadACV = New HsvRulesLoadACV
bSession = cHsvRulesLoadACV.SetSession(m_cHsvSession, _ 
HFM_LANGUAGE_INSTALLED)
If bSession = True Then
  cHsvRulesLoadACV.LoadCalcRules "c:\Acme\myApp.rle", _ 
  "c:\Acme\myApp.log", False, bErr, bWarn, bInfo
End If