Add a Property

A small number of properties are not included in the default Settings.Startup or Settings.Dynamic files. For example, if you are defining realm-area filtering, you will need to add a series of properties to designate the areas for each realm.

There are two methods for adding a property: To add a property to the Settings.Dynamic file or a Workstation.Dynamic file, it is easiest to use the Insert button in the Application Configuration dialog.

If adding a property to the Settings.Startup file, or if you are adding a property to a hidden section, then you should use a text editor to work directly in the file.

Another reason that you might add a property is if you wish to override a configuration setting from the file Setup.INI. Most commonly, this will be done to re-define a VTScada label within an application.

Notes:

  • Property names may not include the following characters []<>=;
  • Properties must be added within the correct section, otherwise they will be ignored.

Steps to add a new property using the Application Configuration dialog:

  1. Open the Application Configuration dialog and select the Edit Properties page.
  2. Click on the Insert button

The Add Property dialog will open.

  1. Enter the Property Name.
  2. Select or Enter a section.

Properties will be ignored if they are added to the wrong section of the Settings file.

  1. Enter a value for the property
  2. [optional] Select a workstation if this property is to be in effect on only that one.
  3. Enter a comment, describing the new property.

Comments will be stored on the line below the property in the Settings.Dynamic file.

  1. Click OK

The dialog closes. Note that the new property will not be saved until you apply your changes.

  1. Click Apply.

The Comment dialog will appear.

  1. Type a comment into the Comments dialog and click OK.

This comment is for the VTScada version control system and should explain why the new property is being added, unlike the earlier comment that explains what the property does.

Steps to add a new property using a text editor:

  1. Start a text editor that does not add formatting to your document.
  2. Open or create the file that the property should be added to.
    1. Use Settings.Startup for properties that require a re-start.
    2. Use Settings.Dynamic for hidden security manager properties.
    3. Use WorkstationName.Startup or WorkstationName.Dynamic in the WorkstationSettings sub-folder for properties that apply only to a specific workstation.
  3. Locate the appropriate section name for the property.

Section names are enclosed in square brackets. Each property listed in the reference section of this chapter will identify the section it must belong to.

  1. Add the property using the format, PropertyName = Value
  2. Add a comment to the following line using the format, ; Comment describing property.

Comments must not be included on the same line as the property definition. Comments on the same line will be taken as values for the property.

  1. Save the file
  2. In the VAM, click Import File Changes, or (better) use the Import/Export Files page of the Application Configuration dialog to import the new or edited file.

The Import/Export Files method is preferred because it enables you to review all changes in the file before proceeding with the import.