Ami*_*mir 2 oracle oracleforms oracle10g
如何F8在oracle表单中禁用?我已经开发了一个表单并对保存按钮进行了验证.但是用户通过按F8保存表单来绕过此验证.
我将验证检查置于KEY-COMMIT 触发器中.
我使用Oracle Forms 6i.
You should not put validation code in the KEY-COMMIT trigger because, as you now know, that is just one way that the form can be committed. In addition to the F8 key it could be that the user exits the form and answers "yes" to "Do you want to save your changes?" and so on.
To validate a record, use the WHEN-VALIDATE-RECORD trigger. To perform more complex validation you can use the POST-FORMS-COMMIT trigger.
I had to deal with a similar problem recently where the developer had put some vital initialision code in the WHEN-BUTTON-PRESSED trigger of an "Enter Query" button. If the user pressed the appropriate key for Enter Query instead, or used the menu, or used the toolbar, the form fell over in a heap.
| 归档时间: |
|
| 查看次数: |
2826 次 |
| 最近记录: |