• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
D2W to many deny delete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2W to many deny delete


  • Subject: D2W to many deny delete
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 15 Feb 2019 12:43:49 -0500

I have a small d2w project.

Person has a to-many relationship to DocuentScan. In my Person entity I see the
documentScans relation. I set the Delete Rule to deny. So if I try to delete a
person, and there are Document Scans attached, the transaction will be aborted
and there will be an error message.

OK, so user ‘Ted' has some documentScans attached. I click to delete the user
and I get the normal confirmation box. I click the delete to confirm and
instead of returning me to the previous screen with a warning, I get an error
in Eclipse. here is the top few lines:

WARN  NSLog  - <er.ajax.AjaxRequestHandler>: Exception occurred while handling
request:
<er.extensions.validation.ERXValidationException object: <com.as.Model.Person
pk:"1">; propertyKey: documentScans; type: ObjectsRemovalException;
additionalExceptions: ()>
[2019-2-15 12:21:5 EST] <WorkerThread7>
<er.extensions.validation.ERXValidationException object: <com.as.Model.Person
pk:"1">; propertyKey: documentScans; type: ObjectsRemovalException;
additionalExceptions: ()>
        at
com.webobjects.eoaccess.EOEntity.validateObjectForDelete(EOEntity.java:4190)
        at
com.webobjects.eoaccess.EOEntityClassDescription.validateObjectForDelete(EOEntityClassDescription.java:521)
        at
er.extensions.eof.ERXEntityClassDescription.validateObjectForDelete(ERXEntityClassDescription.java:700)
        at
com.webobjects.eocontrol.EOCustomObject.validateForDelete(EOCustomObject.java:1419)
        at
com.webobjects.eocontrol.EOEditingContext.validateTable(EOEditingContext.java:2274)

and this is the top of my browswer:

Application:    AS_Document_Safe
Error:  <er.extensions.validation.ERXValidationException object:
<com.as.Model.Person pk:"1">; propertyKey: documentScans; type:
ObjectsRemovalException; additionalExceptions: ()>
Reason: Cannot delete this <b>Person</b>. You should first delete the items in
its <b>Document Scans</b>.
OK, Am I missing some rule somewhere?

Since I was looking at a ListPerson page, I expected the ‘Reason’ to be at the
top of the table.

Anyone have any solution here?

Ted
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: D2W to many deny delete
      • From: Fabian Peters <email@hidden>
  • Prev by Date: Re: Invitation: WebObjects Developer Meeting on April 11th 2019 in Frankfurt am Main
  • Next by Date: Re: Best deployment style for Mojave ?
  • Previous by thread: Re: Invitation: WebObjects Developer Meeting on April 11th 2019 in Frankfurt am Main
  • Next by thread: Re: D2W to many deny delete
  • Index(es):
    • Date
    • Thread