Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: fferm on November 05, 2010, 12:26:29 am

Title: Lock a tagged value from editing
Post by: fferm on November 05, 2010, 12:26:29 am
Hi

Does anybody know if it is possible to restrict the editing of a tagged value, i e lock it so that noone can alter the value once it has been set?

Regards
/ Fredrik Ferm
Title: Re: Lock a tagged value from editing
Post by: Geert Bellekens on November 05, 2010, 01:00:14 am
You might be able to do something with the EA_onPre/Post... events.

Geert
Title: Re: Lock a tagged value from editing
Post by: Aaron B on November 05, 2010, 09:12:58 am
If you have the Corporate edition or higher and user security is enabled on your model, you should be able to use workflow scripts to deny the ability to update tagged values.  See:
Workflow Scripts (http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/projects_and_teams/workflow_scripts___overview.html)
Workflow Script Functions (http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/projects_and_teams/workflow_scripts.html)
Title: Re: Lock a tagged value from editing
Post by: mrf on November 05, 2010, 09:19:09 am
Yeah I'd agree with AaronB, workflow scripts would probably be the best way to do this. If you do decide to go down that route, please checkout the latest workflow script template:

http://community.sparxsystems.com/resources/code-templates/workflow-script-template