We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OM extensions : how a loop on sales order lines is sorted by ?

Received Response
28
Views
5
Comments
edited Sep 10, 2020 2:45PM in Order Management 5 comments

Content

Hi all,

I have created an extension which loops on sales order lines with below classic code :

def lines = header.getAttribute("Lines");
while( lines.hasNext() ) {
   def line = lines.next();
   ....


Line 2 is fetched before line 1... How is it possible ? What the sort used by "next" to get line data ?
Is it possible to change that order (like an "ORDER BY")

Thanks
Samuel

Version

20C

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!