Delete record from file
Posted: Wed Nov 08, 2017 1:11 pm
I'm writing a new maintenance function based on the tutorial - WAD260A – An Employee Maintenance Application
( http://docs.lansa.com/14/en/lansa097/in ... A%7C_____0 )
I understand how the server module is used to insert and update records but I'm confused with the delete. I can't see where it does a delete. I can see how the Data Model invokes the Remove method for the gEmployees collection:
Define_Com Class(#prim_acol<#jtmDataEmployee>) Name(#gEmployees)
Mthroutine Name(DeleteEmployee)
Define_Map For(*input) Class(#jtmDataEmployee) Name(#Employee) Pass(*By_reference)
#gEmployees.Remove( #Employee )
Signal Event(EmployeeDeleted) Employee(#Employee)
Endroutine
So my question is, how does the remove method on the collection actually do a delete of the record from the file?
( http://docs.lansa.com/14/en/lansa097/in ... A%7C_____0 )
I understand how the server module is used to insert and update records but I'm confused with the delete. I can't see where it does a delete. I can see how the Data Model invokes the Remove method for the gEmployees collection:
Define_Com Class(#prim_acol<#jtmDataEmployee>) Name(#gEmployees)
Mthroutine Name(DeleteEmployee)
Define_Map For(*input) Class(#jtmDataEmployee) Name(#Employee) Pass(*By_reference)
#gEmployees.Remove( #Employee )
Signal Event(EmployeeDeleted) Employee(#Employee)
Endroutine
So my question is, how does the remove method on the collection actually do a delete of the record from the file?