how to change the block status to insert in 10g using a button trigger

假装没事ソ 提交于 2019-12-11 14:25:52

问题


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

any ideas?


回答1:


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.

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!



来源:https://stackoverflow.com/questions/22131046/how-to-change-the-block-status-to-insert-in-10g-using-a-button-trigger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!