New Window() and Column Dialog() enable you to construct a launch window that has a column selector. Use Column Dialog() to construct a simple launch window. Several items are added automatically to column dialogs: the Remove and Cancel buttons, the list of columns, and an OK button (if no buttons are explicitly defined).
dlg = Column Dialog(
Show( dlg );
xCol = dlg["x"];
yCol = dlg["y"];
Show( xCol, yCol );
New Window() is more flexible because of numerous optional arguments. In the following example, the user must select two columns before clicking the OK button. A Bivariate graph is then created. Validating the user’s selections is not possible in Column Dialog().
xvar = .;
yvar = .;
<<Modal,
<<On Validate(
x = Col List Box(
dt, // data table reference
all, // display all columns from the data table
y = Col List Box(
ycol = Column( dt, yvar );