Purpose With Column you can add a new column in a table control.
Example Column "Description" size=30 name="descr" position=5 -readonly

This creates a new column with the heading "Description" . The column values are taken from the variables V[descr.1], V[descr.2],...

Format Column "heading" size=x name="varname"   (options)

A new column with the heading "heading" is appended to the table. The column width (also maximum input size) is x. The variables V[varname.1], ... are mapped to the column values (input and output), where the index 1,2,3,,, denotes the absolute row number within the whole table control (not only within the the visible part). It is also possible to use another column as index, instead of 1,2,3; see option keycolumn=.

Options
table= A table T[tabname] can be specified. This option is required if there is more than one table control on the screen.
position= Position of the column within the table.
keycolumn= Instead of using the row number as index, you specify a column whose values are used as index. For example, you specify keycolumn=[Item] where [Item] is the table column that contains the item number within the document. If you allow input in your column, and the user is allowed to delete certain rows or to insert new ones later on, the absolute row number would not be a useful index, since it would change when rows are deleted or inserted. Please see InputAssistant Tutorials for an example.
-numerical Numerical input only
-uppercase Uppercase input only
-intensified The field value is displayed with a different colour (standard: red)
-alignright The field value is aligned right in readonly mode.
-readonly  Input not possible
-proportionalfont The column display uses a proportional font (e.g. for text fields).
-checkbox The column value is displayed as a checkbox. Possible values are "X" and " "
-pushbutton The column shows a pushbutton
process= For pushbutton columns only: Name of the InputScript that is to be processed. The number of the row in which the button has been clicked is contained in V[_tabrow]. It is the relative number in the display, not an absolute number on the table.
label= Pushbutton label. Optionally you can show an icon and a tooltip using the notation  "@id\Qtooltip@text". For details see the Pushbutton documentation.
If you do not specify label=, the content of the variables (name=) is used as the button label. With this technique the label can be different in each row.
TechName=

SearchHelp=

Further searchhelp options

Defines the searchhelp for the new column. Same options and meaning as in InputField.
Example pushbutton

(VA01)

Column "Add" size=4 position=6 -pushbutton label="@E8\QAdditionals@" process="va01_vh.txt"

This creates a table column displaying a pushbutton in each row. The icon with id "E8" is shown as a button label, with tooltip "Additionals". When the user clicks one of the buttons the InputScript "va01_vh.txt" is started. The row number is communicated to the InputScript via the system variable  V[_tabrow]. This is the relative row number in the display, which, after scrolling, can be different from the absolute row number in the table. The InputScript selects the line and then enters the function code "=PADD" in order to switch to the "Additionals" screen in VA01 for the selected order item.

// InputScript va01_vh.txt
Set
cell[All items,0,&V[_tabrow]]
"X"
Enter
"=PADD"

 

Components GuiXT (only useful with InputAssistant)