![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I am using Forms 5. I have have disabled the key-commit feature via a trigger. The issue remains that say a user re-queries or does some other action the form often ask if they would like to save the changes. I never want to allow the user a chance to save the changes by any onther means than the POST button provided. Here is exactly what I am doing. The user queries the table and then they can change selected values in the some columns. When they hit the post button it only looks at row that have changed and copies those into AUDIT if certian conditions are meet. If the conditions are not meet the row is rejected is reverted back to the orginal values while the other rows are updated on the primary table (and a copy is dropped into an audit table). The only way a row can be updated is if these certian conditions are reached. It works on a row by row case - not the entire table at once. This is why I can not have a general update or commit of the entire table. The post button processes only the rows that have changed from the orginal and if the new values is valid then it just updates that particualr row and places a copy in the audit table. Warnings are giving about the particular row(s) that can not be updated/audited. This is significantly different than just writting a simple on-update or on commit trigger. I know I could simiply could put the code behind the on-update, on-commit, etc but I would rather just diable those possiblites and only allow the changes to occur via the post button. |
![]() |
| Thread Tools | |
| Display Modes | |
| |