When a user makes a selection from a list of locations, the application verifies if the selected report already exists and if it is recent. If the report is older than the report refresh time or if the report does not exist, the report is generated with the executeReport function.
The following overview describes this functionality in the example application:
Check if the report design file id exists.
If the file id is not known, a search is made for the file id of Flight Performance.rptdesign; the design file that generates the BIRT report visualizations.
Define parameters to run the report design and generate the report for the selected state.
Run the loadBookmarks function to display the report visualizations on the web page.
The executeReport function searches for the BIRT report design file id if the id does not already exist with the following code: