I want to show some specific data on report, so I add Print When Expression to textfield tied to column on database.
Click on detail1 area and add to Print When Expression the following code:
$F{InvoiceValue}.intValue() >= $P{MinInvoiceValue}
I do what in next link precisely :
https://www.packtpub.com/pa...Add parameter and name it MinInvoiceValue
Change Parameter Class to java.lang.Integer
I unified the data type of textfield and corresponding on database same type (integer).Then when tab on preview. View didnt run.
I searched about this and found some solutions like :
new Boolean($F{InvoiceValue}.intValue() >= $P{MinInvoiceValue})
and
$F{InvoiceValue}.intValue() >= $P{MinInvoiceValue}?Boolean.TRUE:Boolean.FALSE
preview still stuck (can't preview report)