Skip to content

Class: dbCodeComboForm

Properties | Events | Methods | Index of Classes

Provides combo objects that automatically use a central codes database file such as CODEMAST

Hierarchy

cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseControl > DfBaseList > DfBaseForm > DfBaseEntry > DfBaseComboBoxEntry > ComboEntry > dbBasicComboForm_ > dbBasicComboForm > dbDataComboForm > dbComboFormDS > dbCodeComboForm

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: Dfcdcent.pkg

Mixins: cCodeMaintOpen_Mixin

Description

dbCodeComboForm is used to provide combo objects that automatically use a central codes database file such as CODEMAST. These are never used used with data dictionaries. Combo forms that use data dictionaries automatically acquire CODEMAST access through the DDO with the dbComboForm class.

Sample

Object Orderhea_VIA is a dbCodeComboForm 
    Entry_Item Orderhea.Via {iValidate =get_Validate_Combo_item}
    set entry_state to true
    Set Location TO 64 146
    Set Size     TO 60 95
    Set Label    TO 'Ship Via:'
    Set type_value to "SHIPPING"
    Set Status_Helpt to "Select Shipping Type"
End_Object

Syntax

Object object_name is a dbCodeComboForm 
    set location to vertical horizontal
    set size to height width
    Entry_Item filename.field
    set label to text
    set type_value to typeName
    set entry_state to true|false
    set enabled_state to true|false
    set code_display_mode to DisplayMode
    Set Combo_Sort_state to true|false
    set status_help to StatusHelpT ext
    set allow_blank_state to true|false
End_Object

Of Special Note

Applications that use DataDictionary objects for database access do not need to use this class because this class's functionality can all be attained within the DataDictionary objects.

This class is preconfigured to draw its insertion and display values from the CODEMAST central codes database file supplied with DataFlex.

The property type_value sets the CODEMAST type value. All records having this type will be added to the combo list (i.e., each Code and Description for a record of the type specified by type_value will be available).

The property code_display_mode may be used to determine whether the combo list displays the description (default - CB_CODE_DISPLAY_DESCRIPTION), the code (CB_CODE_DISPLAY_CODE), or both (CB_CODE_DISPLAY_BOTH).