Edit Record Functions |
When the record is successfully saved, the Edit window is closed if it's a new record; if the record is part of a set, the next record in the set is opened. |
Script Language: JavaScript | For use with: DB/TextWorks | Requires at least version 4.1 |
var newrec = 0;
function onRecordNew()
{
newrec = 1;
}
function onRecordSaved()
{
if (newrec == 0)
{
Command.nextRecord();
}
else
{
Command.closeWindow();
}
} |
Notes: Version 4.1 of DB/TextWorks is required to use the onRecordSaved() trigger and the two Command functions. | Submitted by Inmagic Staff on 14-Jul-2000 14:34 |