Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Browse Tricks, Roster

Questions related to using nuBuilder Forte.
markzeryk
Posts: 17
Joined: Sat Nov 02, 2019 8:07 am

Browse Tricks, Roster

Unread post by markzeryk »

Hi,

Thank you for this roster video.


Question: The roster (background colors) disappear when hovering over a row. Can we disable that?
hover.png
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse Tricks, Roster

Unread post by admin »

markzeryk,

You could remove !important from the stylesheet.
Capture.JPG
Steven
You do not have the required permissions to view the files attached to this post.
markzeryk
Posts: 17
Joined: Sat Nov 02, 2019 8:07 am

Re: Browse Tricks, Roster

Unread post by markzeryk »

Yeah, that's fine, but then it's gone for all the forms
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse Tricks, Roster

Unread post by admin »

markzeryk,

You're a hard man to please.

Maybe someone else on the forum has a better answer.

Steven
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Browse Tricks, Roster

Unread post by kev1n »

Hi,

Add this Javascript in the form's custom code field:

Code: Select all

if( nuFormType() == 'browse') {  
   $("[id^=" + 'nucell_' + "]").unbind('mouseenter mouseleave');
}   
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Browse Tricks, Roster

Unread post by kev1n »

In addition, if you want to underline a cell when your mouse hovers over a cell, use this code:

Code: Select all

if( nuFormType() == 'browse') { 
   $("[id^=" + 'nucell_' + "]").unbind('mouseenter mouseleave');
   
   var element = document.createElement('style');
   element.setAttribute('type', 'text/css');
   element.textContent = ".nuCellEven:hover {color: hotpink;} .nuCellOdd:hover {color: hotpink;}";
}   
markzeryk
Posts: 17
Joined: Sat Nov 02, 2019 8:07 am

Re: Browse Tricks, Roster

Unread post by markzeryk »

admin wrote:markzeryk,

You're a hard man to please.

Maybe someone else on the forum has a better answer.

Steven
Yeah, I guess that's my fault. I am a perfectionist
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Browse Tricks, Roster

Unread post by miasoft »

Hello all!
I try Roster-example and I can't save my new roster's record. If I add records to Staff or Clients all is Ok.
Is this correct ?
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Browse Tricks, Roster

Unread post by kev1n »

Hi,

Saving works fine for me. To be able to help you, we need more details. Like screenshot(s), error messages etc.
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: Browse Tricks, Roster

Unread post by nac »

Hello miasoft,

It is worth making sure that your view is updatable (in case you created something slightly different to the example and you are trying to save data on a form that uses a view as the source). Try running this query:

Code: Select all

SELECT TABLE_NAME, IS_UPDATABLE FROM VIEWS WHERE TABLE_SCHEMA = 'mydatabasename'
to show all the views in the database and which of them are updateable.

Neil
Post Reply