Sometimes scripting options are available to data objects that are not available at the form level. See the following examples.
JCTransactionID on an IN Invoice Line (INInvoiceData.Line)
The JCTransactionID on an IN Invoice Line can be edited in MaxBasic. On the IN Invoice Form this field is read-only. The field can be edited if Allow IN sourced Invoice Lines is selected in JC Settings, and the line has a Job Code. The JCTransactionID and the Invoice Line must have the same Job Code, Product Code and Type.
Changing the JCTransactionID on an IN Invoice Line will change the following fields on the Invoice Line:
CopyActuals method on Budget Data Objects
Various Budget Data objects have a CopyActuals method, that can be used to copy actual figures to a budget. CopyActuals has two boolean parameters:
datBudgetObject.CopyActuals(Value1: Boolean, Value2: Boolean)
Data Object |
Value 1 |
Value 2 |
ARBudgetData APBudgetData |
When True, FX values are copied. |
When True, BS values are copied. |
ICBudgetData |
When True, budget amounts are copied. |
When True, budget quantities are copied. |
GLBudgetData |
When True, this year's activity figures are copied. |
When True, last year's activity figures are copied. |
JCBudgetData |
When True, the budget is copied. |
When True, cost values are copied. |