• 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…
  • UDS event trigger when an existing order is brought up and the Cancel button is hit.

    I have scripts that show or hide a button added to the screen depending on certain conditions. When an order is brought up the button shows/hides correctly. The issue I am having is if a user brings up an order when the condition is met and the button…
  • 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…
  • BOI user defined scripts and Visual Integrator

    So I have an odd problem. A customer is using Visual Integrator to run jobs. That's fine, they also use BOI in the User Defined Scripts, attaching to Read, Write events. The problem is the code in these scripts are ran when Visual Integrator is running…
  • 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…