Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

SKIP Function (Dataport, Report, XMLport)

Microsoft Dynamics Nav 2009

Skips the current iteration of the current dataport, report, or XMLport.


SKIP

While you can use SHOWOUTPUT Function (Report) to suppress printing the output from a section in a report, SKIP allows you to suppress any processing and move on.

If you perform some processing in the OnAfterGetRecord trigger of a data item and you do not want this processing to take place in some situations, you can use SKIP as in the following code example.

IF Balance = 0 THEN
  CurrReport.SKIP
ELSE
  ... // some processing

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 it.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.