Hi,
i had to add a new numeric sequence to each new record of my table.
So i had to override the createrecord() method of the corresponding form:
public void createRecord(str _formDataSourceName, boolean _append = true)
{
R_FeasabilitySequence r_feasabilitySequence;
;
super(_formDataSourceName, _append);
M_Feasability.selectForUpdate(true);
M_Feasability.FeasabilityId = r_feasabilitySequence.newFeasabilityId();
}
I set the ‘append’ parameter to “true” in order to add the new record.
Do i have to use the ttscommit command? Is this code missing something important?
Seems to work fine to me.
Thank you