Hi,
My code below. I am trying to checkout file/s which is successful. However, I want the "system" to ask the user if he/she wants to check out before actually performing the action, i.e display the prompt: "Files are not checked out. Do you want to check them out.
How can I achieve this? I know I can do this by myself and checking the properties of the files, but I was instructed to use the ProgressAcquireFilesSettings and I thought there were some help in the API. Thanks...
IntPtr parent = new IntPtr();
VDF.Vault.Forms.Settings.ProgressAcquireFilesSettings settings = new VDF.Vault.Forms.Settings.ProgressAcquireFilesSettings(_mainLogic.Conn, parent, Constants.CHECKOUTFILE);
settings.DefaultAcquisitionOption = Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout;
settings.OptionsResolution.ForceOverwrite = false;
settings.AddEntityToAcquire(files);
VDF.Vault.Forms.Library.AcquireFiles(settings);
Solved! Go to Solution.
Solved by smithmat. Go to Solution.