Property Class
use BLOCK property class for all non-modal blocks; use BLOCK_DIALOG for
blocks displayed within modal windows.
Key-Mode
If the block is based on a table or a single-table view, set Key-Mode to Unique. If the block is based on a join view, set Update Allowed to No. Ensure that at least one item inthe block is marked as a primary key。
Next and Previous Navigation Data Block
这一属性控制block前后顺序关系。请恰当设置以实现满意的用户体验。
1. Navigation Style
Change Record for all multi-record blocks.
2. 创建Current Record Indicator(CURRENT_RECORD_INDICATOR)
添加item,设置子类信息为CURRENT_RECORD_INDICATOR
为indicator添加item-level WHEN-NEW-ITEM-INSTANCE trigger,使用户单击indicator时,光标自动跳至首列:
GO_ITEM('lines.order_line_num');
1. 需要设置relation对象的属性
删除记录行为:
默认Non-Isolated :无法删除有子记录的主记录
Isolated :删除主记录但不删除相应子记录;
Cascading:删除主记录时,自动删除相应子记录;(不推荐)
注意:当block基于视图而非表时,请将这一属性设置为Isolated,并在主记录的删除过程中删除子记录。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22414008/viewspace-616114/ ,如需转载,请注明出处,否则将追究法律责任。