IBM Datacap, Version 8.1            

Overview of the line item grid

The line item grid is programmed to add rows automatically at runtime to accommodate the number of items on the invoice. If the number of items exceeds the space available within the panel control, a vertical scroll bar is displayed.

Taskmaster DotEdit creates the line item grid template at design time by using the information in the DCO of the application. In the DCO of the APT application, the Main_Page definition includes a Details field. The Details field defines the area on the page where invoice items can appear and has a subfield of type Lineitem. The Lineitem field has five sub-fields that define the columns in the grid. The five sub-fields are ItemID, ItemDesc, Qty, Price, and LineTotal.

Whenever Taskmaster DotEdit finds a Lineitem field in the DCO, it creates the grid template automatically by using the default sizing for the columns and the panel. You can resize the columns and the panel as needed and then rebuild the project view of the new version in Microsoft Visual Studio.

To add additional columns to the grid, create new subfields under the Lineitem field in Datacap Studio and then run the Taskmaster DotEdit test container in Microsoft Visual Studio (Ctrl+F5) to create the new custom panel (see Creating a custom panel for the APT Invoice sample).



Feedback

Last updated: November 2013
dcapi478.htm

© Copyright IBM Corporation 2013.