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"
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
3- when clicking on "Admin Home", it brings me back to the menu, not the browse page
How can I access the browse back ?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Go back to browse after edit
-
- Posts: 101
- Joined: Mon Mar 26, 2018 5:57 pm
Go back to browse after edit
You do not have the required permissions to view the files attached to this post.
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Go back to browse after edit
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.
If yes, open the edit form with just these two parameters (form id, record, id).eg.
Code: Select all
nuForm('5b0bc3a7083dfac', '123221232123212');
-
- Posts: 101
- Joined: Mon Mar 26, 2018 5:57 pm
Re: Go back to browse after edit
Yes indeed there is a nuSelectBrowse()
So shall I change something to this line ?
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');
}
Code: Select all
nuForm(nuGetProperty('form_id'), r, '', '', '1');
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: Go back to browse after edit
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);
}
-
- Posts: 101
- Joined: Mon Mar 26, 2018 5:57 pm
Re: Go back to browse after edit
Perfect thanks, solved !
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23