Fire Detail Trigger On (AcceptEvent)

Specifies one or more OCX events that fire the detail trigger.

"AcceptEvent=EventName(;EventName)"

"IgnoreEvent=EventName(;EventName)"

Value

Description

EventName

Name of an OCX event that causes the detail trigger to be fired.

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

Available OCX events.

Applies to:

uOcxContainer (OcxContainer)

Description

Use this property to map one or more OCX events to the Uniface detail trigger. For more information, see trigger detail.

By default, all OCX events are ignored (IgnoreEvent) so you must explicitly specify the events that will be mapped (AcceptEvent), and write ProcScript in the detail trigger to handle the events.

Alternatively, you can implement widget triggers for each OCX event you want to handle. This is more flexible and usually preferable, although there are some limitations.For more information, see Interactive Widget Triggers for OCX Controls .

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

For example, the Windows Media Player OCX control has an event called StatusChange. You can map this event to the detail trigger using the AcceptEvent property.

$fieldproperties(FLD) = "AcceptEvent=StatusChange"

When multiple events are specified, use a Uniface list.