project BLF > class Persistence Layer > method WriteCopy

Description

Like WriteDirect, this method writes directly to the database, without using any temp-tables.
Unlike WriteDirect, this method does not update the original record, but makes a copy first and updates this copy.


Parameters


icTableNameinputcharacter
icPrepareinputcharacterProgress for each statement defining what record(s) must be copied.
icFieldListinputcharacterComma seperated list of field names to update.
This list should always contain at least one field of every unique index defined on the updated table.
icFieldListDataTypesinputcharacter
icUpdateValueinputcharacterchr(2) seperated list of values to write to the fields of icFieldList. The same value(s) will be written to each record to update.
ihClassinputhandle
icUserLogininputcharacter
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BMfgDomain.PreSave


program code (program1/persistence.p)