Make prompt box for data submitting in input report

After releasing an input report made in RAQ Report to web page, it will generate an submitting button on the toolbar automatically. Then, if users click this button, it will submit data directly without prompt.

However, some web report users may wish that a prompt box will appear after clicking the submitting button, and users can decide whether to submit data by clicking Ok or Cancel. With this prompt box, users can avoid incorrect manipulations.

Next, we will learn how to make a prompt box for data submitting in input report.

General idea:

1. Prompt box must be realized with Javascript. Therefore, we need to write lines of javascript codes and insert them into the JSP used for releasing the report.

2. Add a button in toolbar for the new function. As there is a default submitting button in the report already, it will be repeated if we add a new button here. Therefore, we need to shield the default submitting button or modify the Javascript function called by the default submitting button.

According to the general idea, the operations are as follows.
Step 1: Modify toolbar.jsp, and add custom javascript codes.

Open toolbar.jsp(It is an independent JSP file used to save function button codes, and it is called in showReport.jsp which is used for displaying report. By modifying it, we can modify the tool bar in web page.), and add custom javascript codes for the prompt box as shown below:

< script language=
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!