PHPMaker has the great feature to generate the Confirm page before user save the record into the database. This Confirm option is located under Table setup for Add, Edit, and Multi-Update pages. By using this option, then PHPMaker can generate the Confirm page for that pages and we can enable this feature only for the certain table(s). The Confirm page will be displayed after user pressing on Add button (for Add page) or Edit button (for Edit page) or Update button (for Multi-Update page). This Confirm page will enable user to re-check the data in the View Confirm page before truly writing or saving the data into the database.
Unfortunately, the Confirm page needs one additional HTTP request to the server. In other words, this will take longer time for user to wait and see the Confirm page to be displayed back in the browser after clicking either Add, Edit, or Update button. Moreover, if the Confirm page will be implemented into the Master/Multiple-Detail page and the detail tables contain some lookup fields to other reference tables, and user have to scroll down to the bottom of page to see and click on the Confirm button. You will see this feature is not good enough to be implemented for such cases.
The best solution to solve this issue is by skipping the Confirm page and displaying the Javascript confirmation popup message after user pressing either Add, Edit, or Update button. In other words, we will remove the additional HTTP request from client to server, and simply use the popup message instead. See? This will make your web applications become more powerful, looks professional, and yet so simple business-logic to your users. This will save a lot of time for your users to finish one cycle to insert a new record or edit/update the existing record.
Well, did I mention Alertify for displaying Javascript confirmation popup message? Yes! We will use Alertify JavaScript Alert/Notification System to display the confirmation popup message. Again, this will make your web applications become looks more and more professional, since the standard Javascript confirm provided by browser looks so too standard and ugly, I think! Not only that, this popup message will be displayed after system completely validating the data on the form (also using Alertify Javascript, too!). In other words, they won't be clashed between one (validation) and another (the last seconds before saving the record).
All this ability can be achived easily and quickly by simply using MasinoFixedWidthSite10 extension. No need to customize the template. No need to customize the generated web applications.
You can simply enable this Alertify Javascript confirmation popup message from Tables setup under the Advacend Settings of the extension. There are five setting items available:
- AlertifyOnAdd, for the Add pages.
- AlertifyOnEdit, for the Edit pages.
- AlertifyOnUpdate, for the Multi-Update pages.
- AlertifyOnDelete, for the Delete pages.
- AlertifyOnDeleteFromView, when user click/press on Delete button/link from View page.
As you can see from those 5 setting items above, this confirmation popup message will not be displayed only for those 3 (Add, Edit, Update) pages, but we can display also this Alertify Cofirmation popup message for the Delete pages and View pages when users are trying to delete the record.
Please make sure you have re-downloaded all the latest updated extensions for PHPMaker version 10 in order to enjoy this feature properly. The latest update will also solve the issue of collision while displaying the Alertify alert from form validation and Alertify confirmation popup message. And one last thing, this Alertify confirmation popup message feature also will answer completely the following topic in PHPMaker discussion forum: Add Client Script: Form Custom Validate
Leave a Reply
You must be logged in to post a comment.