Add fill-ins to the window for the calculations
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
In this section you add fill-in fields to your sample window for Order
calculations.
To write the code that calls h-OrderCalcs.p:
- Open h-CustOrderWin2.w in the AppBuilder.
- Stretch the window somewhat at the bottom to make room for some more fields.
- To place fill-in fields on your window to hold the totals the procedure passes back, click the Fill-In icon on the Palette.
- Click under the browse in your design window to drop the fill-in field onto the window.
- 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.
- 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