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

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

Unread postby ruiascensao » Fri Apr 25, 2014 12:25 am

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 10:54 pm

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

Unread postby ruiascensao » Fri Apr 25, 2014 9:06 pm

Hi,

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

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

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

Unread postby massiws » Tue Apr 29, 2014 12:51 am

Rui,
try this in Custom Code -> Javascript:
Code: Select all
function nuLoadBrowse() {
    $( "#nuBrowseTabAreaHolder" )
        .find( "div[id^='row_']" )
        .off("click");
}


Max
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy

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

Unread postby ruiascensao » Tue Apr 29, 2014 6:27 am

Hi Max,

It works fine. Fantastic!!!

Thank you for your help!
BR
Rui
ruiascensao
 
Posts: 177
Joined: Tue Nov 15, 2011 10:54 pm

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

Unread postby massiws » Tue Apr 29, 2014 3:32 pm

.
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 3 guests