ApplicationBookingLock
Sometimes it is required to lock a specific context in a journal to
prevent different users from changing data concurrently. For this, in BI# you
can use the
ApplicationBookingLock
data type:
OLAPConnection olapCon = OLAPCreateConnection( "server", "user", "password" ); RepositoryConnection rep = CreateRepositoryConnection( "repository", "project", "user", "password" ); JournalStore js = CreateJournalStore(rep, olapCon); string year = ”2007”; string period = ”12”; string scenario = ”V01”; string group = ”G0001”; ApplicationBookingLock lock = GetLock(js, year, period, scenario, group); // After you’ve done your work, you have to release the lock: ReleaseLock(js, lock);