With the enhanced check-in dialog in V8i, there is a checkbox that allows a user to "create new version during check-in" if the user has version rights. While I know you can disable the ability to version on a per user basis, that is an all-or-nothing approach, which overrides our need to create versions at times other than check-in. There doesn't seem to be a way to disable the checkbox. Ideally we want to disable it because we would never want users versioning at check-in. A datasource setting to this effect would be a simple and easy solution, but I can find no such setting.
Because we have very specific processes tied to user rights and workflow states, we have PWE customizations in place that rely on AAHOOK_CHANGE_DOC_VERSION to detect and control versioning actions. It works very well in XM, but when checking in a drawing in V8i, with this new "version at checkin" checkbox selected, it isn't caught by the hook.
AAHOOK_CHANGE_DOC_VERSION is only tied to aaApi_NewDocumentVersion() and aaApi_ChangeDocumentVersion() functions. And from what I can gather, the new dialog aaApi_DocumentCheckInActionDlg2() doesn't offer any hooks either. I'm not finding any help in the SDK about this. Are there any options I'm missing that would allow me to address this issue programmatically? Or do I need to file a CR?
Thanks,
Jeff
Hi Jeff,
You are right - there is no setting to turn off the checkbox. However the AAHOOK_CHANGE_DOC_VERSION should work for you, because aaApi_NewDocumentVersion function is called, if the checkbox is checked. Could you provide a code sample which I would be able to compile and run on my environment?