Create a Function
In the Object Manager
panel of the application, under the Detail
section, choose the Contained Objects
tab.
The Contained Objects
tab page
opens.
Choose Function
from the Type
field and choose Create Object
.
In the Object Creation
dialog box that appears, enter Exec_PriceFac_And_Prem in the Name
field, fill in the Short Text
and Text
field,
and choose Create and navigate to object
.
The function is created and the edit function page appears.
Assign Expression to the Function
Under the Detail
section, under Properties
, choose Functional Mode
from the Mode
field.
The Top Expression
field
appears.
Choose (Graphical Access
) next to the Top Expression
field.
In the context menu, choose PRICE_FACTOR_AND_PREMIUM_DT
.
The decision table is assigned as top expression to the function.
Assign Context to the Function
Under the Detail
section, choose the Signature
tab.
Under Context
, choose Add Existing Data Object
.
In the Object Creation
dialog box that appears, select LEVEL_OF_COVER
and choose Select
.
Similarly, choose AGE
.
The data objects are added as the context.
Assign Result to the Function
Under Result Data Object
, choose (Graphical Access
) next to Result Data Object
.
In the context menu, choose Select...
.
In the Object Query
dialog box that appears, select PRICE_FACTOR_AND_PREMIUM
.
The data object is added as the result.