Locking an order

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

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

Locking an order

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

Re: Locking an order

Post 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.
Bob Richards, Senior Software Developer, SoftPro
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

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

Re: Locking an order

Post by BobRichards »

Is this being written in JavaScript to replace the default Start Page?
Bob Richards, Senior Software Developer, SoftPro
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post 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.
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil »

Any updates on this?
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

Re: Locking an order

Post by dutil »

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

Re: Locking an order

Post by BobRichards »

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