We have an app that tracks the amount of work performed monthly on projects where the project managers enter the Percent Done for each active project on a monthly basis.
There's an integer field (Total Percent Done) on the parent table (Projects) that receives the SUM of values of the (Percent Done) field on the associated child table (Project Work Entries) via insert and update triggers. Javascript has been implemented to alert users via a pop-up if a Work Entry would result in the Total Percent Done being >100. However, users can still actually enter values that would result in Total Percent Done being >100.
We're looking for a way to enforce a business rule on the server side that would not allow Total Percent Done to be >100. Any idea on how this would be best done?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
HughD
We have an app that tracks the amount of work performed monthly on projects where the project managers enter the Percent Done for each active project on a monthly basis.
There's an integer field (Total Percent Done) on the parent table (Projects) that receives the SUM of values of the (Percent Done) field on the associated child table (Project Work Entries) via insert and update triggers. Javascript has been implemented to alert users via a pop-up if a Work Entry would result in the Total Percent Done being >100. However, users can still actually enter values that would result in Total Percent Done being >100.
We're looking for a way to enforce a business rule on the server side that would not allow Total Percent Done to be >100. Any idea on how this would be best done?
Thanks in advance!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.