The rule calculates properly, but the results are not fed. The question boils down to is the construction of the feeder correct and/or is there something about retrieving the attribute causing the problem?
Code: Select all
FEEDSTRINGS;
SKIPCHECK;
['Budget', {'All Employee Incentive', 'QIP Incentive', 'CAP Incentive', 'Executive Incentive', 'Marketing Incentive'}] = N:
IF (!StaffingCalc_Measures @= ATTRS('Staffing_IncentivePlans', DB('Staffing Calc',
!Com_Versions,
!Staffing_Types,
!Com_Slots,
!HIERARCHY_STAFFING,
!Com_Months,
'Incentive Plan'), 'StaffingCalc_IncentiveElement')
, DB('Staffing Calc',
!Com_Versions,
!Staffing_Types,
!Com_Slots,
!HIERARCHY_STAFFING,
!Com_Months,
'Monthly Incentives')
, 0) * ['CountFlag1'];
FEEDERS;
# feed the appropriate incentive with CountFlag1
['Budget', 'CountFlag1', {'Current Staff', 'BSKL', 'Adds', 'Transfers'}] => DB('Staffing Calc',
!Com_Versions,
!Staffing_Types,
!Com_Slots,
!HIERARCHY_STAFFING,
!Com_Months,
ATTRS('Staffing_IncentivePlans',
DB('Staffing Input', !Com_Versions, !Staffing_Types, !Com_Slots, !HIERARCHY_STAFFING, 'Incentive Plan'),
'StaffingCalc_IncentiveElement') );