Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Conditional check failure outputs a "-2" instead of failing the report(Conditional check failure outputs a "-2" instead of failing the report)
Conditional check failure outputs a "-2" instead of failing the report [message #1826189] Mon, 20 April 2020 18:16
rameez chowdhury is currently offline rameez chowdhuryFriend
Messages: 1
Registered: April 2020
Junior Member
Hello Everyone,

We have a business requirement to FAIL the report based on some business conditions, e,g. Name= null etc.

i have created the conditional expression, including a few computed columns in the DocPrepLibrary with the conditional checks where it should fail the report when the conditions are met.

if(dataSetRow["<< column>>"] ==null) || (dataSetRow["<< column >>"] =="")
{
reportContext.getAppContext().put("fail", new java.lang.Integer(1));
}
else
{
dataSetRow["<< column >> "]
}

I intend to fail the document whenever the report is invoked with an "Internal Report Status : Fail" in the application. But i get a "-2" displayed for the null column and the report does not fail.

Can anyone guide me on this ? is changing/working on the Library level not correct ?

[Updated on: Tue, 21 April 2020 13:08]

Report message to a moderator

Previous Topic:Browser Issues using Birt Reports
Next Topic:Birt 4.8 ignores height of empty table rows
Goto Forum:
  


Current Time: Thu Apr 25 05:32:07 GMT 2024

Powered by FUDForum. Page generated in 0.02897 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top