Skip to content

Class: cWebParentCombo

Properties | Events | Methods | Index of Classes

The Web Framework parent table combo class

Hierarchy

cObject > cWebBaseObject > cWebObject > cWebBaseUIObject > cWebBaseDEOServer > cWebBaseControl > cWebBaseDEO > cWebCombo > cWebParentCombo

Show full hierarchy and direct subclasses

Library: Web Application Class Library

Package: cWebParentCombo.pkg

Description

The cWebParentCombo class allows the user to select a parent using the combo control.

When using the parent combo control, the Entry_Item command determines the parent table and column that will be used. The combo fills itself by searching the parent table. It fills itself when a view is loaded to the client where then Refill procedure can be used to update the combo items.

Object oSalesPID is a cWebParentCombo
    Entry_Item SalesP.ID
    Set piColumnSpan to 3
    Set piColumnIndex to 7
    Set psLabel to "Salesperson:"
    Set peLabelAlign to alignRight
End_Object

Using the Find keys (F7, F8, F9) in a cWebParentCombo control performs a find on the parent table (changes the control's value to the previous/next/equal value in the drop down list), without dropping down the list.

The parent record is found during the synchronization process before a save operation is performed. If related columns are shown, then pbServerOnChange should be set to True to update their values after selecting the combo item.

Drag and Drop Support

This control can be used as a valid drop target by registering it as such in a cWebDragDropHelper object.

The supported actions for this control are: - C_WebDropOnControl

This allows the control to accept data dragged from elsewhere in the control (if configured that way) and can also be used to accept files when registered within a cWebDragDropFileHelper.

See Also

cWebCombo