Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Browse screen: don't allow to open the edit screen

Locked
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Browse screen: don't allow to open the edit screen

Unread post by ruiascensao »

Hi,

I have a Browse Screen where I just need to list the records from a table.

I don't want the user to open the edit screen.

If the user tries to copy data from the Browse screen, it opens the Edit screen.

How can I avoid the Edit screen to open?

Thank you.
BR
Rui
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Browse screen: don't allow to open the edit screen

Unread post by ruiascensao »

Hi,

Is there a way to use nuLoadBrowse() / nuGridClass( ) to achieve this?

Thank you.
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Browse screen: don't allow to open the edit screen

Unread post by massiws »

Rui,
try this in Custom Code -> Javascript:

Code: Select all

function nuLoadBrowse() {
    $( "#nuBrowseTabAreaHolder" )
        .find( "div[id^='row_']" )
        .off("click");
}
Max
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Browse screen: don't allow to open the edit screen

Unread post by ruiascensao »

Hi Max,

It works fine. Fantastic!!!

Thank you for your help!
BR
Rui
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Browse screen: don't allow to open the edit screen

Unread post by massiws »

.
Locked