Skip to content

Dependent_Item (Obsolete Command)

Obsolete

This command is obsolete. It is valid only in character-mode DataFlex. The same functionality is achieved in DataFlex by using multiple data entry objects (DEOs) for the same table and column in a component (e.g., dbView) that are connected to the same DataDictionary object (DDO).

See Also

Purpose

To make an item a member of a group of dependent items.

Syntax

item_group
    dependent_item
        {object_id item_number | item_name}
:
end_item_group

What It Does

This command identifies each item to be included in a dependent item group. Each item in the group will have the same value at all times. Dependent item groups should be declared just prior to the first start_ui statement.

A dependent item group is created whenever a group of items must always have the same value. For example, when a database field is bound to more than one item (in one or more objects), each item bound to the field must display the same value. To ensure this, you may create a dependent item group that specifies all equivalent items.

item_group
    dependent_item customerform.obj 1
    dependent_item paymentform.obj 2
end_item_group

In this example, if the second item in Objectcustomerform and the third item in Objectpaymentform were both bound to Fieldcustomer.customer_name, we would create an item group to ensure that they both always reflect the same value.

Any time data entry is performed on one of the items in the group, all of the other items in the group are set to the value of the edited item once the cursor leaves the item.