Share via


PRINTONLYIFDETAIL Function (Report)

Gets or sets the current settings of the PrintOnlyIfDetail Property.

Syntax

  
[IsPrintOnlyIfDetail :=] PRINTONLYIFDETAIL([SetPrintOnlyIfDetail])  

Parameters

SetPrintOnlyIfDetail
Type: Boolean

The new setting of PrintOnlyIfDetail Property.

Property Value/Return Value

Type: Boolean

true if the PrintOnlyIfDetail Property is set to true; otherwise, false.

Example 1

The following example is from the OnAfterGetRecord trigger of a report. If the PrintOnlyIfDetail property is true and if a GLEntryPage record exists, given the current filters, then the PageGroupNo is incremented. This example requires that you create the following variables.

Variable name DataType Subtype
GLEntryPage Record G/L Entry
PageGroupNo Integer Not applicable
IF CurrReport.PRINTONLYIFDETAIL AND GLEntryPage.FIND('-') THEN  
  PageGroupNo := PageGroupNo + 1;  

Example 2

The following example sets the value of the PrintOnlyIfDetail Property to true. It requires that you create a Report variable named Report111. The Subtype of the variable is report 111, Customer - Top 10 List.

IsPrintOnlyIfDetail := Report111.PRINTONLYIFDETAIL(true);  

See Also

PrintOnlyIfDetail Property
Report Data Type