如何使用按钮触发器更改块状态以插入10g [英] how to change the block status to insert in 10g using a button trigger

查看:81
本文介绍了如何使用按钮触发器更改块状态以插入10g的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用按下按钮的触发器在oracle表单10g中将块或表单状态更改为插入".我想做类似默认工具栏中的插入记录"按钮的操作,但是要使用自定义按钮

how to change the block or form status to 'insert' in oracle forms 10g using when-button-pressed trigger. I want to do the same thing like the 'insert record' button in the default tool bar but using a custom button

有什么想法吗?

推荐答案

在按下按钮的触发器中调用do_key('create_record');.这将在当前块中插入一条新记录,其中所有状态都会相应改变.

Call do_key('create_record'); in your when-button-pressed trigger. This will insert a new record in the current block with all, what state changes accordingly.

set_record_property(:system.cursor_record, :system.cursor_block, state, 'INSERT');更改状态不会带来完全相同的结果.但是尝试一下!

Changing the state with set_record_property(:system.cursor_record, :system.cursor_block, state, 'INSERT'); will not bring the exact same result. But give it a try!

这篇关于如何使用按钮触发器更改块状态以插入10g的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆