Function ProMdlIsModifiable
Description
Check if given model is modifiable, indicating that the model could be saved (without checking for any subordinate models). For a generic model, if show_ui is PRO_B_TRUE, all its instances are also checked. Note: When the same processing needs be applied to multiple models, ProMdlsAreModifiable() API is recommended to be used instead. In the case show_ui=PRO_B_TRUE, the muti-object API guarantees rasing a single Conflicts dialog for all conflicts.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdl.h>
ProMdlIsModifiable
(
ProMdl p_model
/* (In)
model to check access to.
*/
ProBoolean show_ui
/* (In)
Indicates whether the Conflicts dialog should be shown to user to resolve conflicts (if they are detected); when set to PRO_B_FALSE no UI is enabled and the model is considered as modifiable if there are no conflicts that could not be overridden or resolved by default resolution actions.
*/
ProBoolean* can_modify
/* (Out)
The access status. If it is PRO_B_TRUE, the model is modifiable.
*/
)
Returns
The function successfully retrieved the information.
One or more arguments are invalid.
The function could not check access to the model.
Sample Code References
User Guide References
Was this helpful?