当前位置: 代码迷 >> PB >> 关于itemchanged事件解决方法
  详细解决方案

关于itemchanged事件解决方法

热度:91   发布时间:2016-04-29 08:28:26.0
关于itemchanged事件
小弟的DW中有三个字段 art_no,descr,qty 我想实现手工录入这三个字段,如果art_no为空的时候不允许跳转到descr。。。

------解决方案--------------------

方法(1)设置art_no列的edit下的Required属性为true
方法(2)在数据窗口的设计界面中的Column Specification面板上,为art_no列设置Validation Expression为“gettext() <> ''”,设置Validation Message为“'art_no列不能为空'”

不要在dw的itemerror事件中写代码,如果非得写代码,当列为art_no时,一定保证该事件返回值为0
  相关解决方案