• 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
Re: Mark as deleted in a ERD2W app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mark as deleted in a ERD2W app


  • Subject: Re: Mark as deleted in a ERD2W app
  • From: Ramsey Gurley <email@hidden>
  • Date: Fri, 19 Aug 2011 10:04:41 -0700

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mark as deleted in a ERD2W app
      • From: David Avendasora <email@hidden>
References: 
 >Mark as deleted in a ERD2W app (From: Markus Ruggiero <email@hidden>)
 >Re: Mark as deleted in a ERD2W app (From: David Holt <email@hidden>)

  • Prev by Date: Re: Qualifier With Primary Key
  • Next by Date: Re: Qualifier With Primary Key
  • Previous by thread: Re: Mark as deleted in a ERD2W app
  • Next by thread: Re: Mark as deleted in a ERD2W app
  • Index(es):
    • Date
    • Thread