![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |
#2
| |||
| |||
|
|
Hello, |
|
How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |
#3
| |||
| |||
|
|
Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |

#4
| |||
| |||
|
|
Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |
#5
| |||
| |||
|
|
"Jim" <jim_esti (AT) hotmail (DOT) com> wrote in message news:f0e3dc0b.0307211014.3b7ee8f1 (AT) posting (DOT) google.com... Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? key-commit, key-updrec triggers which will do nothing (null ![]() tool bar ? can't remember what cathes those ones, hopefully the same triggers. Is this homework, if I my ask ? If you are able to try it out from a home pc, then download the software from otn.oracle.com (read the license conditions!) |
#6
| |||
| |||
|
|
Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |
#7
| |||
| |||
|
|
Hi Jim, thanks for writing this: Hello, snip How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? In the "old days" (and since I haven't used Forms lately, I don't know if it's still the case), I used Oracle Terminal to specify what "action" a particular key performed. For example, using Oracle Terminal, I was able to "map" the F6 key to a "commit" action. I could also "unmap" the F6 key so it no longer performed any action. By the way, what version of Forms ARE you using? |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
As I said I could put the code in the various aspects. As you indicated that it would be ideal to have a simple procedure to handle the process and I agree. But it is not indicated that way in my specs. The specs indicate that all forms of COMMIT, UPDATE etc be removed and only the possible way to do any sort of commit, update etc would be through a POST button. The problem becomes when I null out the KEY-COMMIT or ON-UPDATE trigger and then call for a commit in the POST button it fails. It appears that the trigger catchs the commit. It must be due to the methods used in the button to do the actions. I have resorted to added: :global.trigger_disable := 'true'; -- added to the start of the POST Button :global.trigger_disable := 'false'; -- added to the end of the POST Button Then in the KEY-COMMIT, ON-UPDATE etc I added: if if :global.commit_disable = 'false' then message ('Commit not allowed here.'); else commit; end; The tricky part comes when I do the on-update trigger. This simple trick will not work as easily as I update each row seperately and update different columns based upon special cases. The joy fun of it. |
#10
| |||
| |||
|
|
Hello, I have a basic form and a post button. The user is able to view and query a particular table. When the user presses the post button some calculations are done and the table they where looking at is updated via the post button only. The calculations and features behind the post button are to specialized and complex to do via update trigger or commit trigger. I can write the post button so that it updates the table correctly. What I want to do is disable the user's ability to Commit and Update that table via another means than that post button. When I try to add triggers to the block the Commit and Updates it effects the updates and commits I do on the POST button. How can one disable the Commit and Update keys/process and yet be able to do the same functionality on a button? The only way I want to let the user Commit or update is via this post button. Any Ideas? |
![]() |
| Thread Tools | |
| Display Modes | |
| |