(Tested on v2017.2 Standard and 2018.3 Standard).
I stripped my script to just a loop through oLines on a panel UI script (see below script code). With this active, when I add / edit lines, then click off the tab then back to pLines, the lines on an order are overwritten / deleted by the new lines (i.e. corruption).
Set oLines = oSession.AsObject(oBusObj.Lines)
retVal = oLines.MoveFirst()
do until oLines.EoF
retVal = oLines.MoveNext()
loop ' oLines
Goal:
I want to scroll through lines, and pop-up a message to the user under certain conditions, but just scrolling through oLines with a Panel - PostLoad script is causing problems.
In theory, since I'm already on the lines tab (and only want to check for a certain item code being on the order), I could use the grid to do that, but I have not scrolled through grid lines via script before. Any ideas / tips would be appreciated.