2009年5月4日 星期一

How to customize prompt confirm message box for web input report?

Background


For web input report, users often need input data at the client-side. Then, if a prompt message box will appear when users submit input data to confirm submit success, it will be very convenient.

Sometimes, users have to customize prompt message box according to real requirement. Then, how to achieve it?

Solution


RAQ Report is a professional Web-based reporting tool pays a lot of attention to users’ requirement. Therefore, users can solve all the common problems in web report easily with RAQ Report. Such as radio button for single choice or multiple choices, drop-down list, automation computation, automation sequential number, data validity check, and batch operations, etc.

For this problem, RAQ Report provides a wonderful solution. Therefore, you can easily customize prompt box with RAQ Report. As it is a pure Java reporting tool,you only need to write JavaScript Code in a JSP file.

For example, if users want to add “cancel” in the prompt message box, they just need to set “cancel” as the value of promptAfterSave.

The JavaScript Code is as follows:

   <input type="submit" name="Submit2" value="submit" onclick="firm()" />

function firm()

{

// Use the return value of prompt box(true or false)

if(confirm("NeedSave"))

{

//If true is selected, call _submitTable( report1 )

_submitTable( report1 );

return true;

}

else

{

//Or else cancel it;

//alert("If false is selected, false will be returned");

return false;

}

}

</script>

Graphic Illustration


The prompt confirm message box made with RAQ Report.

Source: Knowledge Base of RAQ Report
Original Post: How to customize prompt confirm message box for web input report?
Related Articles:
Wonderful data input with reporting tool;
Are you seeking a user-friendly Java development tool?;
Submit data to multi-dataset/multi-source with web-based reporting tool — RAQ Report;
Display a specific page or specific pages in web report ;
Useful Links:
Knowledge Base of Java Reporting Tool;
Freezea’s Report Lesson;
Jackson’s Reporting Review;
Building a Custom Confirmation Dialog Box;

Tag after customize, Excel-like Java reporting tool, message box, prompt confirm message, RAQ Report, submit input data, web input report, web report, Web reporting tool

clip_image001RAQSOFT: Innovative Techology Makes Progress.


For more about reporting tool, you are welcome to refer to freezea's blog.

0 评论:

发表评论