Gets the data for the specified journals. GetJournalsDisplayData returns data only for the columns specified in the varalColumns argument.
<HFMwManageJournals>.GetJournalsDisplayData (varasLabels, bstrScenario, bstrYear, bstrPeriod, varalColumns)
An array containing the labels of the journals for which to return data. You can get the labels of all journals that match given criteria with ExecuteQuery. | |
An array of that identifies the columns for which to return data. To set this argument, use either of the following techniques:
|
Returns an array of arrays containing data for the specified journals and columns. There is one array element for each journal specified by the varasLabels argument; each element then contains an array of journal data, with the size of that array corresponding to the columns specified by the varalColumns argument.
Some journal data, such as journal type and status, are represented by HFMConstants type library constants. For more information, see Journal-Related Constants. |
The following function returns the labels, statuses, and types of the journals for the specified Point of View, with the journals sorted by label. The columns, filtering, and sorting options are set with various HFMwQueryDef properties; note that the For...Next loops set the filters so that journals of all statuses, types, and balance types are returned.
Function GetJournalsForPOV(sScen, sYear, sPer, sVal) Dim cHFMManageJournals, cHFMQueryDef Dim vaCols, vaSortOpts, vaFilters, vaLabels, vaRet Set cHFMManageJournals = Server.CreateObject _ ("Hyperion.HFMwManageJournals") 'g_cHFMSession is an HFMwSession object reference cHFMManageJournals.SetWebSession(g_cHFMSession) Set cHFMQueryDef = Server.CreateObject("Hyperion.HFMwQueryDef") cHFMQueryDef.ResetAll cHFMQueryDef.columnContents(0) = COLUMN_JOURNALLABEL cHFMQueryDef.columnSortOption(0) = JOURNALREPORT_SORT_ASCENDING cHFMQueryDef.columnContents(1) = COLUMN_JOURNALSTATUS cHFMQueryDef.columnContents(2) = COLUMN_JOURNALTYPE For i = 0 to WEBOM_JOURNAL_NUM_STATUS_FILTER - 1 cHFMQueryDef.statusFilter(i) = TRUE Next For i = 0 to WEBOM_JOURNAL_NUM_TYPE_FILTER - 1 cHFMQueryDef.typeFilter(i) = TRUE Next For i = 0 to WEBOM_JOURNAL_NUM_BALANCE_TYPE_FILTER - 1 cHFMQueryDef.balanceTypeFilter(i) = TRUE Next cHFMQueryDef.GetDefAsVariants 0, vaCols, vaSortOpts, vaFilters vaLabels= cHFMManageJournals.ExecuteQuery (0, _ sScen, sYear, sPer, sVal, vaCols, vaSortOpts, vaFilters) vaRet = cHFMManageJournals.GetJournalsDisplayData(vaLabels, _ sScen, sYear, sPer, vaCols) GetJournalsForPOV= vaRet End Function