Location:
Search - PBdatawindo
Search list
Description: pb datawindow 技巧
例子:
使DataWindow列只能追加不能修改
如何使DataWindow中的数据只能追加新记录而不能修改,利用 Column 的 Protect 属性可以很方便的做到这一点,方法如下:
将每一列的 Protect 属性设置为:
If( IsRowNew(), 0, 1) )
在 PowerScript 中可以动态修改 Protect 属性:
dw_1.Modify("column_name_here.Protect= 1~tIf(IsRowNew(),0,1) ")
这样,DataWindow 中只有新追加的记录可修改,而其他记录是只读的。 -pb datawindow skills examples : DataWindow out so that not only additional change how the DataWindow data can only plus new record and can not be changed, Column using the Protect attribute can be conveniently do this, as follows : Each series will be the attribute set to Protect : If (IsRowNew (), 0, 1)) in PowerScript can be modified dynamically Protect attributes : dw_1.Modify ( "column_name_here.Protect ~ = 1 tIf (IsRowNew (), 0,1) "), so, Only new DataWindow additional records amended, and other records are read-only.
Platform: |
Size: 9216 |
Author: 童心 |
Hits: