Locking an order

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
dutil
Posts: 26
Joined: Thu Dec 19, 2019 12:10 pm

Locking an order

Post by dutil » Wed Sep 22, 2021 4:59 pm

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)));

BobRichards
Posts: 1116
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Locking an order

Post by BobRichards » Thu Sep 23, 2021 8:21 am

What version of Select are you using? I assume you are running in MultiUser mode. Otherwise orders are open in single user mode only.
Bob Richards, Senior Software Developer, SoftPro

dutil
Posts: 26
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil » Thu Sep 23, 2021 9:32 am

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.

BobRichards
Posts: 1116
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Locking an order

Post by BobRichards » Thu Sep 23, 2021 10:14 am

Is this being written in JavaScript to replace the default Start Page?
Bob Richards, Senior Software Developer, SoftPro

dutil
Posts: 26
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil » Thu Sep 23, 2021 10:17 am

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.

dutil
Posts: 26
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil » Fri Sep 24, 2021 9:45 am

Any updates on this?

dutil
Posts: 26
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil » Wed Sep 29, 2021 10:30 am

Hello?

BobRichards
Posts: 1116
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Locking an order

Post by BobRichards » Thu Sep 30, 2021 6:07 pm

Sorry this is taking so long. A response is coming...
Bob Richards, Senior Software Developer, SoftPro

Post Reply