Database 版 (精华区)

发信人: wodeji (西西), 信区: Database
标  题: [转载] Oracle 的开发工具 Develop 2000 (五)
发信站: 紫 丁 香 (Fri Aug  7 18:38:54 1998), 站内信件

【 以下文字转载自 cndatabase 讨论区 】
【 原文由 oracle.bbs@bbs.sjtu.edu.cn 所发表 】
About Triggers

The primary method of adding code to a form is through triggers. A trigger is a block of
PL/SQL code that you attach to a specific object, and that executes in response to a specific
event. For example, to create a command button, you would draw the button on a form, and
then attach a When-Button-Pressed trigger that executes the desired command code. As its
name suggests, the When-Button-Pressed trigger executes, or fires, whenever the button is
pressed.

Oracle Forms provides a rich variety of events that you can respond to with triggers. Along
with standard interface events such as mouse clicks in a button or check box, Oracle Forms
also externalizes a variety of internal processing events. For example, a When-Validate-Item
trigger fires when Oracle Forms validates the value in a text item. By default, validation
happens according to a well-defined set of event rules. Once you understand these rules,
that is, the Oracle Forms event model, you can write triggers to control virtually any aspect of
your application's behavior.

--
※ 来源:·饮水思源站 bbs.sjtu.edu.cn·[FROM: 202.120.26.30]
--
※ 转载:.紫 丁 香 bbs.hit.edu.cn.[FROM: cadcam.hit.edu.c]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.451毫秒