ChildInputValue property

(Windows only; GUI for .NET only)

Returns a Progress.Data.InputValue instance containing input values for all fields in the current row of the specified child temp-table displayed in the bound .NET control. Use the indexers in this instance to access the input value of a specific field in the row.

Use this property when the BindingSource object is bound to a ProDataSet object that contains child buffers.

Data type: Progress.Data.InputValue class

Access: PUBLIC Read-only

Applies to: Progress.Data.BindingSource class

Syntax

ChildInputValue[ buffer-handle | buffer-name ]
buffer-handle
A HANDLE variable that represents the handle to the child temp-table buffer whose input values you want to access.
buffer-name
A CHARACTER expression that evaluates to the name of the child temp-table buffer whose input values you want to access.

The following code fragment illustrates how to use this property:

DEFINE VARIABLE orderInpVals AS Progress.Data.InputValue NO-UNDO.
DEFINE VARIABLE orderNum     AS INTEGER                  NO-UNDO.

bufName = args:Row:Band:KEY.

IF bufName EQ "ttOrder" THEN DO:
  orderInpVals = myBindingSource:ChildInputValue[bufName].
  /* InputValue indexer is 0-based */
  orderNum = UNBOX( orderInpVals[0] ).
  IF orderNum > 10000 THEN DO:
    MESSAGE "You have reached max number of orders."
    ...
  END.
END.

See also

InputValue property, Progress.Data.InputValue class