MoneyWorks Manual
TweakColumnList (windowRef, listRef)
A script handler you can implement to override standard MoneyWorks behaviour.
Your handler can call the AppendColumnToStdEditList function to append custom columns to allow entry into additional custom fields or tagged fields in the Details or JobSheet table.
Automatically called: When instantiating an editable column list in the transaction entry window or the timesheet window. Do not do anything else in your handler other than appending columns to the list. Do not present any UI.
Example: The following handlers add columns to the transaction and timesheet windows.
on TweakColumnList:F_TRANS(win, list) AppendColumnToStdEditList(list, "Detail.Custom1", "Cust1|40|L") AppendColumnToStdEditList(list, "Detail.Custom2", "Cust2|60|L") AppendColumnToStdEditList(list, "Detail.UserText", "UText|80|L") AppendColumnToStdEditList(list, "Detail.UserNum", "UNum|40|R") AppendColumnToStdEditList(list, "_foo", "foo|50|L") AppendColumnToStdEditList(list, "_bar", "bar|50|L") AppendColumnToStdEditList(list, "_baz", "baz|50|L") end on TweakColumnList:F_TIMESHEET(win, list) AppendColumnToStdEditList(list, "UserText", "UText|80|L") AppendColumnToStdEditList(list, "UserNum", "UNum|40|R") end
Specific Naming: The handler should be specific to either the F_TRANS or F_TIMESHEET window identifier, and may also be specific to the selected detail tab in the transaction window and to a specific transaction type (e.g. TweakColumnList:F_TRANS:By_Item:DI will only apply to the By Item tab for Debtor (Sales) Invoices).
See Also:
AppendColumnToStdEditList: Customise a standard edit list