Conditional check failure outputs a "-2" instead of failing the report [message #1826189] |
Mon, 20 April 2020 18:16 |
rameez chowdhury 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
|
|
|
Powered by
FUDForum. Page generated in 0.02354 seconds