Hello,
I am trying to set the displayonly attribute of a datawindow column dynamically.
I have tried many combinations and I think I am just missing something in the approach.
Below, I have a couple lines of code as an example. To clarify some of the contents:
- ls_colname is the name of the column to modify (of course)
- disableinput is a column on the datawindow with values 'N' or 'Y'. A value of 'Y' indicates that the column should be display only.
I would appreciate any nudge you can give me to get me back on course.
Thanks... LR
===========================================
ls_modstring = ls_colname + ".Edit.Displayonly = '~No~' " + &
" ~t if(disableinput = ~~'Y~~', ~'Yes~' , ~'No~')'"
dw.Modify(ls_modstring)
I am trying to set the displayonly attribute of a datawindow column dynamically.
I have tried many combinations and I think I am just missing something in the approach.
Below, I have a couple lines of code as an example. To clarify some of the contents:
- ls_colname is the name of the column to modify (of course)
- disableinput is a column on the datawindow with values 'N' or 'Y'. A value of 'Y' indicates that the column should be display only.
I would appreciate any nudge you can give me to get me back on course.
Thanks... LR
===========================================
ls_modstring = ls_colname + ".Edit.Displayonly = '~No~' " + &
" ~t if(disableinput = ~~'Y~~', ~'Yes~' , ~'No~')'"
dw.Modify(ls_modstring)