Gerry Schmitz wrote:
Tying the validation to the button "click" ("record" validation) is a lot simpler than context / field validation.
True, but that does not make it right.
Gerry Schmitz wrote:
In this case, he would have to "disable" the button (to "not allow a press"), then enable it when a selection was made.
Which is extremely easy. A "balloon tip" on the OK button briefly telling why it is disabled makes it even more intuitive.
Gerry Schmitz wrote:
The more fields, the more "options", the more complex the enabling / disabling logic.
Only if done incorrectly. Yes, a common approach is to sprinkle enable/disable code all over the place to do that very thing, but that's what adds unnecessarily complex (and possibly unmaintainable) code.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles