how to change the block status to insert in 10g us

2019-09-16 12:28发布

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条回答
冷血范
2楼-- · 2019-09-16 13:11

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!

查看更多
登录 后发表回答