Locking an order
Posted: 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?
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)));