• Error 88: Invalid/Unknown property' on reference to a business object from within the same object

    'Error 88: Invalid/Unknown property' on reference to a business object from within the same object I am trying to browse the records in the 'SO_SalesOrderDetail' from within a Column Pre-Validate script on ItemCode in the same table'. This works from…
  • Sales Order import bypass VB scripts

    Is there a way to determine if a Sales Order is being imported, so I can bypass VB Scripts?
  • Prevent Change to Different Division

    We use divisions and sometimes the users will copy a previous sales order and change the customer. The problem comes in that items on the sale order are coded to one division and if the new customer is in the different division it creates a problem with…
  • Script access to SO_PackageTrackingByItem from SO_InvoiceDetail script

    I need to access values in a UDF added to Item Packaging Maintenance (Shipping Data Entry), from a header or detail script, but I can't figure out how to open that object. Trying the command Window to list methods / properties for the Lines object…
  • Sage - 100 Item Search on multiple Fields

    Our Item Masters contain 130k plus items. Typically I tell our sales people to enter a "z" in the item code field, then press F2. This quickly brings up the items in the item master which start with "z". Otherwise Sage attempts to bring in the entire…
  • PO Receipt Detail

    Getting stuck on this script, I've tried a column post val on the qty received and a table post read. Both are getting stuck at the same point, on the first "retVal=oSOLines.MoveNext()", should it be MoveFirst? Dim sPurchaseOrderNo Dim sSalesOrderNo…
  • PO receipt header script triggers when it shouldn't.

    v2022.2 Standard, Column pre-validate on InvoiceNo, as the only script active on the table. Basically the script checks if the user is allowed to enter an InvoiceNo, and does a SetError (when a specific Role permission is active). The column pre…
  • SetBrowseFilter

    I'm trying to use the SetBrowseFilter method with an external script using the AR_Customer_ui object. and the InvokeLookup method. I need to show only Active Customers with a SortField set to a value. I can't seem to find any documentation for the SetBrowseFilter…
  • Error "IM_ItemWarehouse does not have correct permissions" when using IM_ItemWarehouse_bus or _svc (v2021 with Update 2)

    I'm receiving a cryptic error stating "IM_ItemWarehouse" does not have correct permissions when I do a SetKeyValue and Find via IM_ItemWarehouse_bus (and _svc). Code is below. I've also tried using a SetBrowseFilter and that works until it reaches the…
  • Search Criteria

    I want to do a search the excludes any Job that starts with the letter "C". Is there a carrot or symbol that can be used as a wild card to maybe Not Equal to C* to filter them out? As shown in the picture below I have some jobs that start with a zero…
  • Check if a record is in an editable state

    I'm working on a button script where I'll be looping through multiple Sales Orders, and sometimes an SO will be locked (e.g. when it has an invoice being processed). oSalesOrder = oSession.GetObject("SO_SalesOrder_bus") Set oSalesOrder = oSession.AsObject…
  • Script to update SO line pricing

    A customer has asked for a way to update pricing on 1000's of SO, for some planned pricing updates they working on. My idea was to have a button script to loop through all SO, and all lines on each SO, triggering the Sage logic to calculate each line…
  • Comment Line contains "xyz" - then UDF=Y Script

    Is it possible to search within the SO Detail "Comment" field for a particular word to post-write a check mark in a UDF field?
  • Sales Order Entry / Totals Tab / PaymentObj

    I believe the Deposit Payment Type on the Totals panel and other data reside in PaymentObj. What table is associated with this object? Where/how can I find the data?
  • In column pre-validate script, compare new value to old (pre-field-edit) value

    Writing a script (with role check), where I want to prevent a user from editing a customer's credit limit (ideally preventing a non-admin order entry person, with Customer Maintenance access, from raising a credit limit... without going through an approval…
  • GetResultSets pagination

    Is there a way to paginate the GetResultSets() function in boi? I'm thinking sort of like how in SQL, you can use OFFSET and LIMIT to divide the query results into multiple pages. Is there a way to do that with the GetResultSets() function?
  • UDF Date filter not working with SO Printing Script - BUG?

    Huge thanks to David Speck for your code and your expertise. I've got a script that works well for printing all SOs, but I'm trying to filter it down using a UDF Date Parameter ( UDF_Delivery_By) we have in SO Printing. I'm certain I have my syntax…
  • Pre-Totals Script - Accessing Item Information Using oLines.GetChildHandle("ITEMCODE")

    I have a script on the pre-totals event, that loops through any line items, and needs to get item related information for a given item. The problem I'm running into, is that in certain cases, the script runs, but the item information is returned as blank…
  • Script trigger changes v2021

    FYI, I've just gone through a new upgrade to v2021.1 on the weekend with strange errors opening Invoice/Shipping entry, and again after choosing an SO. Sage support pointed me at *ESC to isolate the issue to scripting, and I found the problems to be a…
  • Full GL Account from SO line script (CostOfGoodsSoldAcctKey / SalesAcctKey)

    I'm starting a script for account segment substitution (CoGS / Sales accounts on specific SO lines), and before I start testing different methods for getting the formatted Account number based on the key values (ChildHandle, open a new object...) I'm…
  • VBSCRIPT - FOR LOOP aLLOWED??

    Are for each loops allowed in BOI vbscript?
  • oSession.AsObject(oBusObj.PaymentObj) inconsistent results in SO scripts

    I have this code in a BOI script (SO Header, PreWrite)... ... Set oPayment = oSession.AsObject(oBusObj.PaymentObj) retVal = oPayment.GetValue("CreditCardAuthorizationNo$", sAuthNo) retVal = oPayment.GetValue("AuthorizationDate$", sAuthDate) retVal…
  • Consolidated billing query with AR_InvoiceHistoryDetail

    We are trying to write a query or stored procedure to identify the cash receipts for each of our franchises (warehouses) but ran into some trouble with consolidated billing. Since payments aren't applied to the line items we need to create a lookup table…
  • Sales Order lines

    I previously worked with Sage 500 and was able to run a query from Sales Order lines and dump that data into excel and then manipulate it for my presentations and create pivot tables.This would brake down the sales order to the line level and provide…
  • SetStorageVar & GetStorageVar in different business objects...

    I have a script in SO Header where I open Customer Maintenance, and I want to pass a Storage Var to that Customer Maintenance object (to change what happens in an AR_Customer post read script), but the values are not transmitted. To test, I created…