Calculated columns in edittables - repost (OpenInsight Specific)
At 13 APR 1998 10:30:27AM Jeff Word wrote:
When I have a symbolic column on an edittable the LIST and ARRAY properties get filled with @fm's and @vm's even when the symbolic resolves to null. When the window is closed it thinks there has been a change and prompts to save.
Real columns bound to a database do not populate an edittable when they are empty. It seems calculated fields should not either. This seems like a common problem developers would have and I really do not want to have to write code that checks every control for changes and sets savewarn. Any bright ideas?
At 13 APR 1998 10:39AM Dave Pociu wrote:
Jeff,
What I do is this on the READ event:
some pre-read code here forward_event( @window , 'READ' ) ; let the read event execute
some post-read code here x=set_property( @window , 'SAVEWARN' , 0 ) ; Everything displayed already. Any changes from now on will set the SAVEWARN flag
return 0
At 14 APR 1998 12:20PM Aaron Kaplan wrote:
I have a program, TRIMEDITTABLES that I call during the read which goes in and kills all blank lines in the edittable. Done mostly for personal aesthetic reasons.
apk@sprezzatura.com