Hi all What is actula difference between delete and dodelete method. And what is the significance of using each. Can any one help with a simple example Thanks Leeza Ann John
When calling doDelete() a record is deleted without executing the delete()-method. And the doDelete()-method cannot be modified. doDelete() (and doUpdate() and doInsert()) is convenient to use when you are absolutely certain what you are doing. E.g. if you change a field and don’t want Axapta to behave as usual when changing in that table.
a simple example: overloaded delete method on a table: void delete() { super(); info(“Record Deleted”); } job: select Table1 …; table1.delete(); //will delete the record and output the info table1.dodelete(); //will only delete the record, because the delete method on the table is not executed here
Thanks a lot for the reply The simple example was a real help for a beginner like me. Expecting more help Thanks Leeza