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

Exit the Foreach Loop after fetching once value in XSL Template

Received Response
33
Views
4
Comments
edited Jul 16, 2020 10:25AM in Reporting and Analytics for ERP 4 comments

Summary

We have an requirement where if there are multiple Invoice lines with PO numbers,but we have to fetch any one of the PO number from lines in XSL template from Payment xml.

Content

In payment xml, we have "DocumentPayableLine" tag which refers the Invoice line and has line details.
In this xml we have four  DocumentPayableLine tags.
Two of them have PONumber Populated and other two have Null for PONumber.
I am using a "foreach" loop to iterate through the DocumentPayableLine and "if" statement to check if PO number is not null.
I am able to fetch two values for PONumber as two DocumentPayableLine has PONumbers populated, but I want to print only one PONumber.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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