Previous PageNext Page

Chapter 18 - Editing an AVD File

1. Run the MAVD program supplied with the software to convert the file from its native binary form to text.

2. Edit attribute view definition files or create new files in any word processing program that accepts ASCII text, such as the EDIT program in DOS.

3. Use the MAVD utility to recompile the file back into binary form for access by STDA client programs.

Converting an AVD File

Figure 18-1. File Conversion Using the MAVD Utility

MAVD Command Syntax

MAVD /d inputfilename [/o:outputfilename]

/d specifies that the binary file specified by inputfilename will be decompiled, that is, converted to text.
inputfilename specifies the path and filename to the Attribute Value Definition (AVD) file you want to convert. The AVD file that is used by default is stored in the MESSAGES subdirectory on the Z drive (for VINES or StreetTalk for Windows NT) to which you are currently connected. You must have administrative rights to convert this file in this directory.
/o:outputfilename specifies the path and filename for the decompiled file. You must have administrative rights to output the converted file in the specified directory.

MAVD sourcefile1 [sourcefile2] [sourcefile3]...[sourcefilen] /o:outputfilename

Example

mavd /d z:\messages\standard.avd /o:f:\smith\avd.txt

Syntax Errors

Formatting Characters

Format of AVD File

Figure 18-2. Sample AVD File

Keywords

Filter Definition

Figure 18-3. Filter Definition Section

Filter Labels

Attribute Value Assertions

<v:a> = class

Table 18-1. Number Identifying the StreetTalk or STDA Class or Category

Number Class
1 User
2 Service
3 List
4 Nickname
5 Groups

Attribute Definitions Section

Figure 18-4. Attributes Definition Section

Attribute Collection Labels

Editing Standard AVD Files

General Formatting Rules

Each filter and attribute section must be properly formatted with the keyword FILTERS or ATTRS, followed by a colon preceding each section of definitions.
AVD files contain two main sections: the filter definition section and the attribute definition section. The number of filter and attribute definition sections an AVD file can contain is unrestricted, but you can only refer to a filter label in a collection of attributes after you define it. If you refer to a filter label before you define it, an error message appears when you use the MAVD utility to convert the file back to binary form.

Editing Filters

Format

"Filter Label" [<0:6>= value1, <0:7>= value2, <0:8>= value3]

Filter label identifies the filter for reference by collections.
0:6 and value1 represent the StreetTalk class and define a unique filter criteria.
0:7 and value2 represent the StreetTalk category and define a unique filter criteria.
0:8 and value3 represent the STDA class and define a unique filter criteria.

Example Editing an Existing Filter

FILTERS:
"AdminList" [<0:6>=3, <0:7>=10, <0:8>=1]
"Alert Management Service" [<0:6>=2, <0:7>=31, <0:8>=4]
"AppleTalk Agent Service" [<0:6>=2, <0:7>=30, <0:8>=4]

Example Creating a New Filter

Name - Network Analyzer

StreetTalk Class - <0:6>=2

StreetTalk Category - <0:7>=1123

STDA Class - <0:8>=4

"Network Analyzer" [<0:6>=2, <0:7>=1123, <0:8>=4]

Editing Attributes and Collections

Example Editing the "Location" Attribute

<0:104> "Location"

<0:104> "Building Address"

Creating a New Attribute

Note: If you define a new <v:a> pair, make sure that the numbers you select are not reserved by Banyan, are not being used, and will not cause conflicts when you attempt to use them.

Example Inserting a New Attribute

"Quick Pick" ["Nickname" , "User" ]

<0:1> "Description"
<0:113> "FAX Number"
<0:104> "Location"
<0:103> "Mail Stop"
<0:111> "Phone Number"
<0:125> "Primary Project"
<0:101> "Title"

<3:201> "Division"

Editing an Existing Collection

"Collection Name" ["Filter Label1" ,"Filter Label2" ,..."Filter Labeln" ]

Edit the collection label. You can edit a collection's label to reflect changes in the purpose of the collection. For example, you might want to change the label of a collection called "General Skills" to a more specific label associated with computer skills named "Software Skills."

To change a collection's label, enter a new text string in place of the existing label. Make sure to retain the quotes. Entering a collection name that already exists in the AVD list generates a syntax error when the file is compiled.

Modify the filter reference. You edit its list of filter labels to change which objects a collection applies to. For example, because most client programs convert nicknames into their full StreetTalk names automatically, you might want to change a collection filter section to refer to Nicknames as well as Users.

To change a collection filter reference, enter a new text string between the filter reference brackets on the same line as the collection name. Separate the reference by a comma from the preceding and next filter references, if any. You can also replace and delete existing labels using the same formatting rules. As noted earlier, the filter label must correspond to a filter that is defined.

Creating a New Collection

1. Enter a collection label in an attribute definition section of the AVD file.

2. Enter a filter label consistent with the format described in "Editing Attributes and Collections" earlier in this chapter.

3. After you specify the collection label and references, enter <v:a> pairs and labels for the attributes you want associated with that collection.

4. Use the MAVD utility to convert the edited AVD file to binary form and install it in the appropriate directory of the VINES Files service (drive Z) that users access in your network.

Example A Collection of Attributes for Commodity Traders

"Broker Information" ["Users"]

<0:107> "City"
<0:108 "State"
<0:109> "Country"
<0:104> "Location"
<0:4> "Operator"
<0:113> "FAX Number"
<0:111> "Phone Number"
<3:101> "Immediate Superior"
<3:102> "Trade Ceiling Level"
<0:125> "Principal Commodity"
<3:103> "Active Market"

Creating Multiple AVD Files

Note: Creating a separate AVD file for information you want to restrict does not prevent users from running the XSTD program to access it. You must set appropriate access rights on that AVD file to prevent access. However, once information in a local AVD file is in StreetTalk, any user can view it.

Creating Multilingual AVD Files

In Your Native Language

1. Convert the STANDARD.AVD file using the MAVD utility. If you are using the AVD file for a specialized purpose (that is, accessing it through the XSTD command and using the /V: parameter to point it at a specific file), you should decompile the AVD file to a local drive. Otherwise, decompile the AVD file in /MESSAGES.

2. Enter filter labels consistent with the format described in "Editing an Existing Collection" earlier in this chapter. Do not remove the FILTERS section label.

3. Modify any labels in the FILTERS section that need different meanings. Do not remove the FILTERS section label.

4. Delete all attribute collections you do not intend to use. Do not delete the ATTRS section label.

5. Insert new attribute collections using the rules described earlier in this section.

6. Compile the file to /MESSAGES or a local directory.

In Another Language

Converting Third-Party AVD Files

Replacing AVD Files

1. The STANDARD.AVD file is compared to the DEFAULT.AVD file to see if that file was modified.

2. If the STANDARD.AVD file was edited and recompiled, the DEFAULT.AVD file is replaced with the newer version. If the files are identical, both files are replaced with the newer version.

AVD Source Language Syntax

Syntax Diagram

Figure 18-5. AVD File Syntax

Figure 18-6. AVD File Syntax (cont.)

Figure 18-7. AVD File Syntax (cont.)

Previous PageTop Of PageNext Page