The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

SKIP Method (Report, XMLport)

Skips the current iteration of the current report or XMLport.




The SKIP Method (Report, XMLport) allows you to conditionally skip processing of the current report or XMLport. If the processing occurs inside a loop, the processing continues with the next record after the SKIP Method (Report, XMLport) is called.

A typical situation in which you will use SKIP is when you want to retrieve records from a related table by using values in the current record for forming a filter. If the values in the current record already indicate that no records from the related table will be retrieved, there is no need to perform this processing and you can use SKIP to avoid the processing.


The following example shows how to use the SKIP Method (Report, XMLport) to skip processing the current record if the balance field of the record is zero. Processing of records will continue until a record that has a balance of 0 is encountered. This example requires that you create the following global variable.

Variable DataType
Balance Decimal
IF Balance = 0 THEN  
  ... // Do some processing.  

See Also

OnAfterGetRecord (Data Items) Trigger
OnAfterGetRecord (XMLports) Trigger
Report Data Type
XMLport Data Type