How to get the context from a collective.z3cform.datagridfield

Yes, thank you!

I stole your example code from How to raise a WidgetActionExecutionError for a non-default fieldset field?

In my case, I needed a parameter force in the function as well. When this is value is True, I am able to get the correct context.

I now see a Traceback of the error message, but it does not show up for the user.

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.app.z3cform.inline_validation, line 28, in __call__
  Module plone.dexterity.browser.add, line 134, in update
  Module plone.z3cform.fieldsets.extensible, line 65, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 141, in update
  Module z3c.form.group, line 52, in update
  Module z3c.form.group, line 48, in updateWidgets
  Module z3c.form.field, line 277, in update
  Module z3c.form.browser.multi, line 63, in update
  Module z3c.form.browser.widget, line 171, in update
  Module z3c.form.widget, line 496, in update
  Module Products.CMFPlone.patches.z3c_form, line 47, in _wrapped
  Module z3c.form.widget, line 92, in update
  Module z3c.form.widget, line 491, in value
  Module collective.z3cform.datagridfield.datagridfield, line 171, in updateWidgets
  Module z3c.form.widget, line 433, in updateWidgets
  Module z3c.form.widget, line 410, in applyValue
  Module collective.z3cform.datagridfield.datagridfield, line 262, in datagrid_field_set
  Module collective.z3cform.datagridfield.datagridfield, line 311, in updateWidgets
  Module z3c.form.object, line 210, in updateWidgets
  Module collective.z3cform.datagridfield.datagridfield, line 423, in _validate
  Module mdb_theme.utilities.validators, line 103, in validate
Invalid: 02094 exists in catalog index article_number for /mdb/de/produkte/karibu-arbeitsplatten-oel-evolution