What's the best way to open a new record right after saving the current one?
If there was an AfterSave event (js), I could run this code.
Code: Select all
nuForm(window.nuFORM.getProperty('form_id'),'-1','', '');
Code: Select all
nuForm(window.nuFORM.getProperty('form_id'),'-1','', '');
Code: Select all
nuForm(window.nuFORM.getProperty('form_id'),'-1','', '');
Code: Select all
nuAddAction();
Code: Select all
nuForm(window.nuFORM.getProperty('form_id'),'-1','', '', 1); //-- fifth parameter
Code: Select all
if (nuFormType() == 'edit') {
$("#nuSaveButton").attr('onclick', '');
$("#nuSaveButton").click(function() {
nuSaveAction();
setTimeout(function() {
nuAfterSave();
}, 1000);
});
}
function nuAfterSave() {
nuForm(window.nuFORM.getProperty('form_id'), '-1', '', '', 1); // open a new record
}