In BIRT report, how to throw error when mandatory fields are not filled
One answer
How about this.
1. Make all your parameters non-mandatory.
2. Add a dynamic text in the beginning of report with logic something like this
if (params["param1"].value == null ) "No Param1 provided";
You may format the test in red.
3. Set the visibility of this text using 'visibility' property and provide an expression like
if (params["param1"].value == null )
false;
else true;
1. Make all your parameters non-mandatory.
2. Add a dynamic text in the beginning of report with logic something like this
if (params["param1"].value == null ) "No Param1 provided";
You may format the test in red.
3. Set the visibility of this text using 'visibility' property and provide an expression like
if (params["param1"].value == null )
false;
else true;
Comments
Anitha Nalluri
Jul 25 '13, 3:46 a.m.