Page 1 of 1

Locking an order

Posted: Wed Sep 22, 2021 4:59 pm
by dutil
Hello,

We're using the following to open an order in the UI but we want to open it with Single User Access. Is there a way to do that?

Code: Select all

var orderMoniker = new OrderUri(OrderKind.Order, orderInfo.Identifier);
_package.GetService<IShell>().OpenStandardEditor(orderMoniker);
var commandManager = _package.GetService<ICommandManager>();

commandManager.Invoke(new InvokeEventArgs(new CommandID(new Guid("F436331E-3D02-4B9B-AF76-FC878517BCF9"), 4522)));

Re: Locking an order

Posted: Thu Sep 23, 2021 8:21 am
by BobRichards
What version of Select are you using? I assume you are running in MultiUser mode. Otherwise orders are open in single user mode only.

Re: Locking an order

Posted: Thu Sep 23, 2021 9:32 am
by dutil
4.6.11

By default they're opening in multi-user mode. In this specific case we want to just open the order in Single User Access mode to prevent other users from opening the order while the user who opened is doing something.

Re: Locking an order

Posted: Thu Sep 23, 2021 10:14 am
by BobRichards
Is this being written in JavaScript to replace the default Start Page?

Re: Locking an order

Posted: Thu Sep 23, 2021 10:17 am
by dutil
Negative. This is a plug-in we're writing to handle a specific subset of existing orders. It's being written in C# using the 4.6.11 SoftPro nuget packages.

Re: Locking an order

Posted: Fri Sep 24, 2021 9:45 am
by dutil
Any updates on this?

Re: Locking an order

Posted: Wed Sep 29, 2021 10:30 am
by dutil
Hello?

Re: Locking an order

Posted: Thu Sep 30, 2021 6:07 pm
by BobRichards
Sorry this is taking so long. A response is coming...