Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Par2: Edit in place: Conditionally enable/disable column 2007-06-25 -- Bjarne Havnen Override the GetEdit method
Dennis Evans adds:
you can use the the getEdit method and return false on the selected
columns when updating, or
add each control to the column specific options, give each control a label
that is easy to remember, this will generate an instance of the EditClass
for each column.
in the initControls method before the parent call
if (self.req = changeRecord)
loop x = 1 to records(self.eq)
get(self.eq, x)
if (self.eq.field = 'a column to disable')
self.eq.control &= null
else
self.eq.control &= class generated ! use the class labels created
when adding the column specific options
end
put(self.eq)
end
Today is November 21, 2024, 7:42 am This article has been viewed 35235 times.
|
|