[web2py] Re: Logical Delete instead of true delete of a record using crud.update
Thanks, I will do that, or something similar. BTW, ignore my other post, for some reason I could not find the original post and posted again. Greg On Nov 4, 2:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: hm. that breaks the workflow. You should expose the nonvalid field (field.writable=True) and do a crud.update(,deletable=False) On Nov 4, 1:31 pm, ggivler ggiv...@gmail.com wrote: I have a crud.update form that is deletable, I use the ondelete callback function to mark the records as nonvalid, is there a way to keep the record from being deleted after this?
[web2py] Re: Logical Delete instead of true delete of a record using crud.update
Ignore this, it is a duplicate. On Nov 5, 3:38 pm, ggivler ggiv...@gmail.com wrote: Sorry if this is a repeat, but I have not seen my original post. I have a situation where I would like to use the crud.update with the delete checkbox, I am using the ondelete callback to set other record to invalid, however after the ondelete function completes the underlying record is deleted. Is there a way to keep this from happening?
[web2py] Re: Logical Delete instead of true delete of a record using crud.update
hm. that breaks the workflow. You should expose the nonvalid field (field.writable=True) and do a crud.update(,deletable=False) On Nov 4, 1:31 pm, ggivler ggiv...@gmail.com wrote: I have a crud.update form that is deletable, I use the ondelete callback function to mark the records as nonvalid, is there a way to keep the record from being deleted after this?