Skip to Content
avatar image
Former Member

How to prevent modifying any property by script in PD 16.5?

Is there any way, how can I prevent modifying any object property (e.g. Table Comment) by vbscript? I am able to prevent user from modifying it in GUI by validation handler, but it seems, that validation handler is not triggered when modifying objects by script. Is there any way how to achieve it? Is it a bug, that validation is not triggered when modifying objects by vbscript?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 25, 2016 at 07:32 PM

    Could you provide code? Event handler should work.

    Sounds like you only want to assign users the right to view  model.

    If this is the case, you can ask them go to Portal or use Powerdesigner Viewer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Chris Baker

      Chris, thanks for your reply. Perhaps you are right with the performance aspect. Regarding the error handling, PD script works as a transaction, meaning, if you run into an error during the script runtime, all changes done so far are rolled back automatically.

      Neither repository permissions nor PD Viewer solve the problem. The users are experienced modellers who actually have to have write permissions for the whole model. The task here is to make one property completely read-only to them. Other properties must stay modifiable. It is the rule in the modelling of the customer and they want to enforce it in PD. Not just have it in the Word document.

      I can take away the whole Edit/Run Script... function from the Tools menu, but that is too restrictive and brings so many disadvantages that I cannot use it.

      Perhaps Matt Creason or Marc Ledier could help us with their knowledge.

      Is there any way, how to disallow users from modifying one object property by vbscript, without taking them the possibility to modify other properties of such object?