GroupJournal, CompanyJournal, GroupSegmentJournal, CompanySegmentJournal
Business applications often have to read and manipulate journals of
various types. BI# offers special variable types to manipulate group journals,
company journals, group segment journals, and company segment journals. To
obtain references to corresponding objects, use functions such as
CreateGroupJournal(),
CreateCompanyJournal(), etc.
OLAPConnection olapCon = OLAPCreateConnection( "server", "user", "password" ); RepositoryConnection rep = CreateRepositoryConnection( "repository", "project", "user", "password" ); JournalStore store = CreateJournalStore(rep, olapCon); GroupJournal groupJournal = CreateGroupJournal( store, "2007", "12", "V01", "GR0001", "HB III", "GJ", "Test Journal", false );
The four journal types are currently the only types in BI# that you
can initialize with the special value
null. For example, this declaration creates an
uninitialized
GroupJournal variable:
GroupJournal journal = null;
To use this variable, you have to initialize it with a proper journal. You can use this feature to avoid the creation of unnecessary objects.