To disable a column in datawindow, in PB script write, in open window event or suitable event :
1 - Make the control's disable for editing
0 - Enable for Editing
dw_1.object.objectname.protect = 1
example : dw_detd.object.matrix.protect = 1
To set column background:
0 - Make the control's background opaque.
1 - Make the control's background transparent.
dw_1.object.objectname.background.mode = 0
example : dw_1.object.matrix.background.mode = 0
To set background color dynamically :
dw_1.object.objectname.background.color = RGB(192, 192, 192)
example : dw_1.object.matrix.background.color = RGB(192, 192, 192)
To set text in datawindow :
dw_1.object.objectname.text = 'This is Text'
1 comment:
good day!!. i would like to ask if there is a powerscript on protecting specific row only?
Post a Comment