Page 1 of 1

Go back to browse after edit

Posted: Fri Jun 15, 2018 1:05 pm
by marcvander
Hey,

when I'm browsing a form, and then entering editing after clicking on one of the entries, I cannot go back to the browse page. The navigation tree doesn't allow me to click on the current form name to come back to browse. Example:

1- I browse the form called "Contact"
Capture d’écran 2018-06-15 à 12.55.15.png
2- In edit form, there is no way to go back to browse "Contact" form in the tree, because it acts like i'm already on "Contact" form
Capture d’écran 2018-06-15 à 12.55.28.png
3- when clicking on "Admin Home", it brings me back to the menu, not the browse page
Capture d’écran 2018-06-15 à 12.55.41.png
How can I access the browse back ?

Re: Go back to browse after edit

Posted: Fri Jun 15, 2018 3:32 pm
by toms
Is a custom nuSelectBrowse() used to open the edit form?

If yes, open the edit form with just these two parameters (form id, record, id).eg.

Code: Select all

nuForm('5b0bc3a7083dfac', '123221232123212');

Re: Go back to browse after edit

Posted: Fri Jun 15, 2018 3:47 pm
by marcvander
Yes indeed there is a nuSelectBrowse()

Code: Select all

function nuSelectBrowse(e) {

    var r   = $('#' + e.target.id).attr('data-nu-primary-key');
    nuSetProperty('MAIN_FORM_RECORD_ID', r);
    nuForm(nuGetProperty('form_id'), r, '', '', '1');
    
}
So shall I change something to this line ?

Code: Select all

nuForm(nuGetProperty('form_id'), r, '', '', '1');

Re: Go back to browse after edit

Posted: Fri Jun 15, 2018 4:06 pm
by toms
Like this:

Code: Select all

function nuSelectBrowse(e) {

    var r   = $('#' + e.target.id).attr('data-nu-primary-key');
    nuSetProperty('MAIN_FORM_RECORD_ID', r);
    nuForm(nuGetProperty('form_id'), r);
    
}

Re: Go back to browse after edit

Posted: Mon Jun 18, 2018 2:26 pm
by marcvander
Perfect thanks, solved !

Re: Go back to browse after edit

Posted: Wed Jun 27, 2018 3:16 am
by admin
.