This single-record info window for "Persons" contains a tab control. This control has 2 tab pages. Each page has with separate fields to fill out, depending on whether the person is male or female.
A decision is used to determine (for the person currently viewed) which tab page must be made sensitive.
The decision is called in the Pre-Record-Entry property of the info window. It passes the value currently found in the Gender field:
ActionDecision( TAB_PAGE_BY_GENDER, query.gender() )
You may want to make this same call also from the Post-change property of the Gender field.
The decision itself looks like this:
(Decision SQL:)
:1 = 'M'
(Yes Action:)
Tab_1.ControlSetActiveTab( 'Page 1' )
(No Action:)
Tab_1.ControlSetActiveTab( 'Page 2' )
|