Menu

#42 Demo: Error in Contact: Filter "Contact Name Required"

v2.0
open
Demos (2)
5
2012-11-03
2005-12-11
No
  1. Start the Primer External Demo
  2. Click on the Contacts icon in the "Outlook" bar.
  3. Click on the "Filter" button
  4. Select a country. E.g. Italy
  5. Now click OK to apply the filter

You get an error "Contact Name Required"

This is triggered by the code in TContact.BeforeStore.
Digging through the code I can see this is caused by
the form hierarchy - the base form TBasicEditForm has
code under the OK button that assumes the object is
being edited. In this case we are only filtering so
it's my
guess that we should not be checking for blank name
values - maybe we should check that we have at least
one non blank value ?

Discussion


Log in to post a comment.