Hi Markus, David is right. If you don't want to delete, don't set isEntityDeletable to true. I'd set up a custom delete action using either a branch delegate or a subclass of ERDActionButton. Then you use your custom delete action to set the delete flag rather than actually deleting the object.
You'd also need to add an additional qualifier to your display groups to prevent the 'deleted' objects from showing up in the interface. Ramsey On Aug 19, 2011, at 9:05 AM, David Holt wrote: > Sounds like you need a boolean value that your clean up routine checks > against. Delete means delete in D2W :-) > > d > > On 2011-08-18, at 11:08 PM, Markus Ruggiero wrote: > >> Hi, >> >> I have a requirement that when the user deletes an object in a ERD2W app the >> object is not deleted from the database but rather marked for deletion. >> There is an external cleanup job running twice a day. This job no only >> removes the data from the database but also does some related cleanup on a >> remote file system. My App has neither access nor knowledge of that related >> data kept remotely. >> >> How would I do this? In EditMyThing and ListMyThing page configurations I >> have the entity MyThing set to entityIsDeletable and thus the delete >> button/icon is shown. The triggered delete action does the correct thing but >> in my case this is not what I want. >> >> Any ideas? >> >> Thanks a lot >> ---markus--- _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
