Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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 23, 2024, 3:30 am This article has been viewed 35239 times.
|
|