Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Return to browse form after save edit form

Questions related to using nuBuilder Forte.
Post Reply
calida82
Posts: 58
Joined: Mon Sep 09, 2019 8:20 am

Return to browse form after save edit form

Unread post 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?
calida82
Posts: 58
Joined: Mon Sep 09, 2019 8:20 am

Re: Return to browse form after save edit form

Unread post 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 ...
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Return to browse form after save edit form

Unread post by kev1n »

Hi,

Call nuHasNotBeenEdited() before nuOpenPreviousBreadcrumb()
Post Reply