IF COPYSTR(TempSalesInvoiceLine."No.",1,2) = 'ZZ' THEN { IF COPYSTR(TempSalesInvoiceLine."No.",1,1) = 'Z' THEN } CurrReport.SHOWOUTPUT := FALSE ELSE BEGIN IF STRLEN(TempSalesInvoiceLine."No.") = 0 THEN BEGIN IF STRLEN(TempSalesInvoiceLine.Description) = 0 THEN BEGIN CurrReport.SHOWOUTPUT := FALSE; END ELSE CurrReport.SHOWOUTPUT := TRUE; END ELSE CurrReport.SHOWOUTPUT := TRUE; END;This code was placed within the SalesInvoiceLine, Body(3)-OnPreSection() of a custom copy of the Sale Invoice Form. I do not see anywhere within 2013R2 to add this custom code at-least not where it will make since. I am probably over looking something glaring, but just can't see it. Any help is appreciated.
Comments
It is a good practice to use CurrReport.SKIP instead of the SHOWOUTPUT. SHOWOUTPUT will not work in the new 2013 R2 layout. If you need similar functionality then you need to turn to the Visibility property in the layout and add the data needed to toggle the visibility to the data set.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com