From: Jyry K. <jy...@ne...> - 2002-06-07 12:20:16
|
Hello New approach to protect/readonly control properties: There are threee kinds of targets that should be locked agains modification. 1) form, 2) column (all rows) and 3) field (only the current row in col) Each target is locked based on a value in the source field, the very current col/row, a cell. Now, there are atleast two reasonable way to declare a locking, any of those three. 1) one property for each target (form, col or field) 2) two properties, or commadelimited list or params: one to declare target and other for value In the first case, there could be three different properties called "lockcol", "lockfield" and "lockform". Any of these can have a value that will cause the target to be locked. A special value of "*" may be used for "any value", also "**" for "in any case, null or not, always lock". naturally "**" is not very useful with lockform, but does the trick of old "readonly" for "lockcol" and "lockfield". The second approach, with two properties, or more practical maybe with two comma delimited values, could use "lock=target,value" where target is "form", "column" or "field" and value like in the first approach. I would recommend going with the latter. --Jyry C:-( C:-/ C========8-O C8-/ C:-( |