• Pre/Post-Delete User Defined Script

    Hello, I am trying to capture a value when it has been deleted and store it to be used in another script. I have tried tying it to a Pre-Delete and Post-Delete event on the table storing the data, but neither are giving me anything. Can someone tell…
  • Script to retrieve altcountrycode not working

    I get an error whenever I try to set the Country Business object, either as a childhandle or asObject. I have no idea why this keeps getting an error 88. 'Title: UDF_Alt_Country_Code 'Desc: Autofill the UDF_Alt_Country_Code after selecting Country…
  • Find the largest value in a field of a table

    Hi everyone, Does anyone know the fastest way to find the largest value in a number field using User-Defined Script/VBS? Background : I'm working on creating a unique ID, like GTIN/UPC, for each item code as the item codes are generated. To get things…
  • User Defined Script on Close

    Is there a way to trigger a User Defined Script when a Sales Order is closed without any changes being made to it?
  • Button Script to open Sales Order UI with parameter.

    Hello, I have been struggling to get this to work for quite some time and am starting to go crazy! I have created a button on the Invoice History Inquiry which opens up the Sales Order UI, but I want to pass through a parameter so that the Sales Order…
  • AP Manual Check Entry screen with UDF from another business object

    Hello, Can anyone help me with example code on how to get a User Defined Field in another object? I'm used to using oSession and oLines to get the header values and details for AP_ManualCheckHeader and AP_ManualCheckDetail. But I'm trying to get one…
  • Purchase Order Entry Script Not Visually Updating Field

    I have a very basic script: sWarehouse = "" retVal = oBusObj.getValue("ShipToCode$", sWarehouse) retVal = oBusObj.setValue("WarehouseCode$", sWarehouse) It is set to run on Column-Post Validiate on the ShipToCode, our warehouses and ship to codes…