Editing Open Type Fields


The following editing operations may be done on a value of type Open Type (formerly ANY):

  • Assign a type to the open type data if a type could not have been previously determined.
  • Change the type that was determined to correspond to the open type data.

 

Assigning a Type to Untyped Open Type Data

If a type could not be determined for an open type variable, a type may be assigned manually. The most common case of this is when a new message is created that contains an open type field and there is no syntax in the schema (such as a table constraint) for determing the type.

In this case, the Assign Type button is enabled in the open type edit dialog:

Pressing this button opens up a dialog box showing all types in the schema which may be selected for use in the open type field:

 

In addition, the UNIVERSAL type radio button can be used to select a built-in type for use in the field:

 

A type may be selected from either list and OK pressed to assign the type to the field. (Note: the OK button will be enabled when a type is selected). The Cancel button can be used to cancel the operation.

 

Changing the Assigned Type

A predetermined open type type may be changed by using the Change Type button. This is done the same way as Assign Type and the dialogs are the same.

 

 

 

Copyright © 2004-2011 Objective Systems, Inc. All Rights Reserved.