In BIRT report, how to throw error when mandatory fields are not filled
Hi,
I have 6 mandatory fields as input for a BIRT Report. If I do not select any value for any of these fields and try to run the report, it shows Loading.... How to throw an error if any of these 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; Comments
Anitha Nalluri
commented Jul 25 '13, 7:05 a.m.
Thanks Ankur for replying.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I have to validate 2 date fields and 4 List boxes (cascading parameters).
When I click on each of the parameter and wrote below code in validate of script tab, it did not work
if(params["Start Date"].value == null){
false;
}
else {
true;
}