[video] Going to a Form without leaving the same window

Questions related to using nuBuilder Forte.

[video] Going to a Form without leaving the same window

Postby cypherinfo » Thu Dec 28, 2017 2:42 am

Following my thread: [video] Hiding vertical scrollbar in IFRAME http://forums.nubuilder.com/viewtopic.php?f=19&t=9194
I have studied the navigation model of Forte here: http://wiki.nubuilder.net/nubuilderforte/index.php/Navigation#Opening_A_New_Window along with the one of the nuBuilder Pro;
Since the limitation of the IFRAME solution, I wonder how to ... an autoresize option?
Alternatively, considering how Opening a new window works:
"Going to a Form while holding down CTRL will open that Form in a new browser tab.
Doing this you'll notice that the new breadcrumb has no Home Breadcrumb and the browser URL has extra parameters.
You can continue using nuBuilder as logged in.
If you try to refresh this page (via the browser) it will go blank."
It is not intuitive for the general user of the final Forte application that way of going to a Form; but a better way is the one of Pro: https://youtu.be/rp8fqA7kKEc
I wonder how to get the same way for going to a form without the limitations of Forte?
Thank you.
cypherinfo
 
Posts: 124
Joined: Fri Feb 19, 2010 2:12 am

Re: [video] Going to a Form without leaving the same window

Postby admin » Thu Dec 28, 2017 8:31 am

cypherinfo,

When you make a selection on a Browse Form nuBuilder calls a function called nuSelectBrowse(e).

But you can create your own nuSelectBrowse(e) function and make it do whatever you want.

(It will reset to the default function when you go to other Forms.)

You'll need to place the function in the Javascript section of the Browse Form you want to change.

Here's an example of a function that will open your selection in a new window.

Code: Select all

function nuSelectBrowse(e){
   
    var r   = $('#' + e.target.id).attr('data-nu-primary-key');

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

}



Steven
admin
Site Admin
 
Posts: 3132
Joined: Mon Jun 15, 2009 9:53 am


Return to General