Setting model object attribute options

About this task

You can set model-wide attributes on model objects; these settings affect all users of databases into which that model has been installed. You must be in the ccm_admin role to change model attribute objects.

The first example shows how to create the attribute, which is required in some cases. After creating the attribute, you can then set it. The second example shows how to modify an attribute that is already set.

Substitute the appropriate option name and syntax for the option you are changing.

Create an attribute

About this task

This example uses the allow_delimiter_in_name attribute, which specifies whether the version delimiter is allowed in an object name. By default, this attribute does not exist, which means the delimiter is not allowed.

To set this option the first time, you must create the attribute as follows:

Procedure

  1. Set your role to ccm_admin.

    ccm set role ccm_admin

  2. Query for the model object in the Rational Synergy database.

    ccm query -t model -n base

  3. Create the attribute.

    ccm attr -c allow_delimiter_in_name -t boolean @1

  4. Set the value.

    ccm attr -m allow_delimiter_in_name -v TRUE @1

  5. Restart your session. (All users of this database must restart their sessions.)

Modify an attribute

About this task

This example uses the wa_path_template_unix attribute, which specifies the default non-project-specific work area directory. By default, this directory is %home/ccm_wa/%database.

To modify this attribute:

Procedure

  1. Set your role to ccm_admin.

    ccm set role ccm_admin

  2. Query for the model object in the Rational Synergy database.

    ccm query -t model -n base

  3. Specify the new path.

    ccm attr -m wa_path_template_unix @1 -v "%home/workareas/%database"

  4. View the new contents of the attribute.

    $ ccm attr -show wa_path_template_unix @1

  5. Change back to your previous role.

    ccm set role previous_role

  6. Restart your session. (All users of this database must restart their sessions.)

Feedback