Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36993

Forum Post: RE: Sales Order Invoice Data Entry, Loop through Lines from dMain button script

$
0
0
I successfuly tested the following (slightly modified) version of your script on both Main and Header panels. If you don't have oSession, then you likely haven't set the script to run on the server. Be sure to use the standard oBusObj to reuse the provided business object for the sales order header and initialize your strTemp variable. strTemp = "" Set oLines = oBusObj.AsObject(oBusObj.Lines) retVal = oLines.MoveFirst() Do While Not(cBool(oLines.EOF)) retVal = oLines.GetValue("ItemCode$", strTemp) retVal = oSession.AsObject(oSession.UI).MessageBox(strTemp) retVal = oLines.MoveNext() Loop

Viewing all articles
Browse latest Browse all 36993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>