Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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 ?

edited Sep 10, 2020 2:45PM in Order Management 6 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!