Page 1 of 1

Unlock Dormant Ledger

Posted: Fri Feb 25, 2022 5:01 pm
by ckootg
How do I unlock a ledger that has been auto locked?

I've tried setting IsDormancyLocked to false and resetting the AutoLockedOn field.

Code: Select all

ledger.IsDormancyLocked = false;
ledger.AutoLockOn = new Date?();
ledgersManager.ApplyChanges();
When unlocking via Select, a "Verify Ledger Unlock" message is given. I assume I'm missing an event handler?

Thanks in advance.

Re: Unlock Dormant Ledger

Posted: Fri Mar 04, 2022 1:29 pm
by BobRichards
I have passed this item to R&D for a response. I'll let you know when I hear anything back. Sorry this is taking so long.

Re: Unlock Dormant Ledger

Posted: Wed Mar 16, 2022 9:59 am
by KWoods
You need to apply the changes to the ledger.

Code: Select all

ledger.IsDormancyLocked = false;
ledgersManager.ApplyChanges(ledger);

Re: Unlock Dormant Ledger

Posted: Wed Mar 16, 2022 2:14 pm
by BobRichards
Duh. Thanks for the answer!

Re: Unlock Dormant Ledger

Posted: Wed Mar 16, 2022 5:48 pm
by ckootg
Duh is right. Thanks for the answer.