Introduction - If you have any usage issues, please Google them yourself
PB DataWindow 38 skills.Txt
1. make DataWindow columns append only and cannot be modified
How to make the data in DataWindow only append new records and can not be modified, the use of the Column attribute of Protect can be very convenient to do this, the method is as follows:
Set the Protect property of each column to:
If (IsRowNew (), 0, 1)
You can dynamically modify the Protect attribute in PowerScript:
Dw_1.Modify ("column_name_here.Protect='1~tIf (IsRowNew (), 0,1) '")
In this way, only additional records can be modified in DataWindow, while other records are read-only.