Page 1 of 1

Return to browse form after save edit form

Posted: Fri Apr 29, 2022 10:52 pm
by calida82
hello i want return to browse form when i click on save button. to do this I write this in java code

Code: Select all

function nuAfterSave(){
    nuOpenPreviousBreadcrumb();
    }
this works but always appears popup with this message :
Leave this form without saving?

why does this happen?
the code doesn't work after saving?

Re: Return to browse form after save edit form

Posted: Fri Apr 29, 2022 11:31 pm
by calida82
I understand why the popup comes out but I don't know how to fix.
in custom java code I also use

Code: Select all

nuSetValue('IDCLIENTE', nuGetProperty('pk_cliente'));
to manually set the value of an inputbox. if I comment out this line of code, the message doesn't go out. but I need to set that value ...

Re: Return to browse form after save edit form

Posted: Sat Apr 30, 2022 7:09 am
by kev1n
Hi,

Call nuHasNotBeenEdited() before nuOpenPreviousBreadcrumb()