Unlock Dormant Ledger

Discussions related to custom development with Select.
Post Reply
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Unlock Dormant Ledger

Post 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.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Unlock Dormant Ledger

Post 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.
Bob Richards, Senior Software Developer, SoftPro
KWoods
Posts: 10
Joined: Tue Aug 27, 2019 12:26 pm

Re: Unlock Dormant Ledger

Post by KWoods »

You need to apply the changes to the ledger.

Code: Select all

ledger.IsDormancyLocked = false;
ledgersManager.ApplyChanges(ledger);
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Unlock Dormant Ledger

Post by BobRichards »

Duh. Thanks for the answer!
Bob Richards, Senior Software Developer, SoftPro
ckootg
Posts: 122
Joined: Fri Jan 06, 2012 6:10 pm

Re: Unlock Dormant Ledger

Post by ckootg »

Duh is right. Thanks for the answer.
Post Reply