Queries and exports in OPTO refer to data by its database column name, such as
MATERIAL_PART_CODE, not by the label you see on the window. The column name is often
different from the label, so it can be hard to know which one to pick.
The Get Column Name button tells you the column name of the field or table you are working in, and copies it to the clipboard so you can paste it where you need it.
Where to find it
The Get Column Name button is on the HOME tab of the OPTO ribbon, in the Query group, to the right of Export To Excel....
Get the column name of a field
- Open the window that contains the field, for example the Parts window.
- Click into the field.
- Click Get Column Name on the HOME tab.
A Get Column Name message shows the Table and the Column for that field. The column name is copied to the clipboard.
- Click OK to close the message.
Get the column names of a table
- Open the window that contains the table.
- Click into a cell in the column you are interested in.
- Click Get Column Name on the HOME tab.
The message shows the Table, followed by one line for each column:
- The database column name comes first, with the column heading in brackets after it.
- The column you clicked into is marked with >. That is the name copied to the clipboard.
- Only columns you can see in the table are listed. Hidden columns are left out.
In this example the cursor is in the Build column, so MATERIAL_PART_CODE is marked and
copied to the clipboard.
- Click OK to close the message.
Use the column name
Press Ctrl+V to paste the copied name wherever you need it. For example, when you set up an export in the Setup Export window, the Table Columns list shows database column names, so you can use the name to find the right entry in that list.
Good to know
- The heading in brackets is the heading shown on the table at the time. The column name is the one to use in a query or export.
- A column that is on screen can be missing from the list. Some columns only display information that OPTO works out or looks up, and are not stored in a database column of their own. In the example above, Description and Tot Amt are not listed for this reason.
- If you see This control is not linked to a database column., the field you clicked into does not store its value in a database column. Nothing is copied.
- If you see This table has no visible columns linked to a database column., the table is filled in by OPTO for display, as many report and enquiry tables are. Nothing is copied.
- If you see Click into a field or table first, then press Get Column Name., click into the field or table cell and try again.

