`
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 Printed November 21, 2024, 1:05 pm This article has been viewed/printed 35235 times. |