The API contains a function aaApi_GetProjectDefaultPreviewPaneView function which we intend to use to obtain the view ID from the Parent Project when adding a new sub-folder under it (sub-Project?... trying not to be confusing here - no idea why what everyone thinks of as a "folder" is called a "project" by the API but whatever). We would then like to use the API to set the ProjectDefaultPreviewPaneView for the Global view of the new sub-folder/project we are adding to match its parent.
However, there is no aaAou_SetProjectDefaultPreviewPaneView function in the API. All we can find is aaApi_SetDefaultView which sounds like it could be used to do the job if you can figure out objectType, objectId & viewType parameters (we know that the userId would be set to "0" for Global, and we obtained the viewId from its parent). We have not been able to find any resource that explains what these required values would be for our case.
If someone could point us to what these values should be, that would be extremely helpful.
Also, if there is some document we are not aware of that provides more detailed info on all of the API's various required parameters that have no explanation in the help documentation that would also be greatly appreciated.
Thanks,
Dave Blackburn
Dave,
As for why the ProjectWise calls a "folder" a "project" is for historical (legacy) reasons. If you look in the Contents of the SDK help under Modules > ProjectWise DMS API > Project Functions, just after the list of functions and just before the "Function Documentation" section, you will see this:
I'm fond of saying "words get in the way", we know what we mean, but what word we used to identify the concept depends not only on the language (English, etc.), but the context. Anyway, folder, project, vault, and sometimes rich project are referring to the same "object" in ProjectWise.
As for your question about how to set the default pane view for a subfolder based upon its parent folder, take a look at the code in MostOfDavesClasses as it has a few "helper" methods that probably would help you sort this out.
You can get MostOfDavesClasses from here: https://github.com/DaveBrumbaugh/MostOfDavesClasses-CSharp-Wrappers-For-ProjectWise
You will need to distribute the included .dll's in order to use all of the methods.
Answer Verified By: Dave B
Thank You! This should prove most helpful to us now and in the future.