Create BetterCommission template

  1. Click the Add If Then Template button Add If Then Template.
  2. In the Template 1 field, type BetterCommissionTemplate.
  3. Create two template parameters, by clicking the Add Template Parameter button twiceAdd Template Parameter.
  4. In the param1 field, type totalCashWorth.
  5. Click the Type field, and select double.
  6. In the param2 field, type commissionToCharge.
  7. Click the Type field, and select double.
  8. In the Presentation field, type A customer who has a total cash value of at least $.
  9. From the drop-down combo (CTRL-SPACE), select totalCashWorth.
  10. In the Presentation field after totalCashWorth, type is charged a commission of $.
  11. From the drop-down combo (CTRL-SPACE), select commissionToCharge.
  12. In the Presentation field after commissionToCharge, type per stock transaction..
  13. Click Condition in the If field.
  14. In the field, type commissionInfo.totalCashValue >= totalCashWorth.
  15. Click Action in the Then field.
  16. In the field, type cashAmount.value = commissionToCharge.
  17. From the menu, select File > Save (or press Ctrl+S).
    getCommission

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.