In this section you add fill-in fields to your sample window for Order calculations.

To write the code that calls h-OrderCalcs.p:

  1. Open h-CustOrderWin2.w in the AppBuilder.
  2. Stretch the window somewhat at the bottom to make room for some more fields.
  3. To place fill-in fields on your window to hold the totals the procedure passes back, click the Fill-In icon on the Palette.
  4. Click under the browse in your design window to drop the fill-in field onto the window.
  5. Repeat Steps 3 and 4 twice more to get a total of three new fill-in fields. Alternatively, you can click twice on the Fill-In icon to lock it in selected mode, and then click three times on the window to get the three fill-ins. The icon shows a lock symbol to indicate what mode it is in

    If you lock the Fill-In icon, deselect it when you are done adding the three fields by clicking the pointer icon on the Palette.

  6. In the AppBuilder main window, give the three fields these names and labels, respectively:
    • dTotalPrice and Order Total
    • dTotalExt and Total Ext Price
    • dAvgDisc and Average Discount