| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (4 out of 17)

Configuring the User Interface of Items

You configure how one or more items respond to interactive operations with a statement that begins with this phrase:

Each configure the user interface as follows statement incorporates clauses that fall into four distinct categories:

Specifying the Applicable User Modes

Each configure the user interface as follows statement must include at least one user modes clause. This clause names one or more user modes under which the configuration does or does not apply.

Use the when in phrase to list the user modes that apply to a set of configuration clauses. Use the unless in phrase in a user modes clause to list the user modes that do not apply to a set of configuration clauses. For example:

As shown above, when specifying only two user modes, separate the mode identifiers with the or reserved word. When specifying three or more modes, separate the identifiers with commas, and include the reserved word or before the last identifier.


Note: You cannot specify a configure the user interface as follows statement that applies only under administrator mode. You can specify configurations that apply when not in administrator mode. This prevents you from unintentionally restricting access to a portion of your own KB.

Declaring User Modes in Configurations provides more information about user modes. Describing Configurations provides more information about configuring the user interface in the various user modes, including a complete example.

Specifying Appropriate Operations for the Target Class

If a clause in a configure the user interface as follows statement refers to a menu choice, attribute, or low-level G2 operation that is not appropriate for the class of the target item, G2 ignores that reference in the configuration clause.

For example, suppose you create this configuration statement:

During the KB's processing, G2 ignores the reference to the RULE class in the menu choices for rule exclude clause, because hide is not one of the system-defined menu choices for the RULE class. However, G2 does not ignore the entire clause, because hide could be a user-menu-choice for the user-defined CUSTOM-OBJECT class.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (4 out of 17)

Copyright © 1997 Gensym Corporation, Inc.