At 03:51 2013-11-21, Peter Cushing <[email protected]> wrote:
Gene Wirchenko wrote:
Dear Vixens and Reynards:
I have been working on something else, and now, I come back to grids.
I have asked this question before, but not gotten an answer
that works. I am asking again just in case someone does know how
to do this or even has a good lead. I really do not want to have
try to code a workaround for this, because it is liable to be very
nasty with *lots* of events to handle.
I am also very puzzled that grids seem to be used a lot by
others, and I have not read about this issue.
I have come to the conclusion that it is much easier to allow them
to enter anything then don't allow them a save until they have fixed
all the errors. You can have a form level validate function that
can check each field in turn and if you have an error description in
your cursor you can upate this. Even
It is easy to do that. That is *NOT* what I am asking
about. You are not the only one missing this. There is a reason
that I keep writing "row-level".
I am referring to validations that have to be done at the
row-level. An individual control value might be a valid value, and
another one in the row might be a valid value, but the two together
might be an invalid combination. I wish to catch those errors. That
is where I have the difficulty, because I can not reliably get the
control values.
if they have multiple errors you just show the first one, then they
fix that and it will show the next etc etc. When all error fixed
they can save it. You can show the error description by using a
label and code in mygrid.afterrowcolchange.
Which would mean that the row change would occur. If there is
an error, I do not want the row change to occur.
The user should know what needs to be entered anyway, so there
should not be that many errors. If they don't they need training.
Errors in this app can be expensive. We would rather that they
not be made.
I have just done a form with validation on up to 10 fields per row
and can explain a bit more if you are interested.
I have created forms with row-level validation for years. I
know how to do that. It is the hooks to get the row-level validation
to work with grids that is the issue.
What we need is a browse with full validation. I thought that
grid could do this. Either it can not, or there is a lot of work ahead for me.
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.