开发者

how disable F8 in oracle form

How I can disable F8 in oracle forms? I have developed a form and put verification for the save button.开发者_开发问答 But users bypass this verification by pressing F8 to save the form.

I put my verification check in KEY-COMMIT trigger.

I use 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜