Welcome to the nuBuilder Forums!

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

Add 2 button to the rows of the browse form

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Add 2 button to the rows of the browse form

Unread post by kev1n »

I'm just repeating what I wrote above:
Enter any ID. Buttons, HTML object etc. are also not saved in the DB but every objects needs an ID.
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Add 2 button to the rows of the browse form

Unread post by icoso »

Great Kev1n. Works like a charm. Now just trying to figure out a way to easily style those elements. Rather than a bunch of document.getElementById("label_formTitle").style.color= "red";
statements in my javascript. Any good ideas how to do that? I tried adding the id of the div to the nubuilder4.css but that didn't seem to change anything. So I resorted to the JavaScript statements.
Screenshot-Instr3.png
Screenshot-Instr2.png
Screenshot-Instr1.png
You do not have the required permissions to view the files attached to this post.
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Add 2 button to the rows of the browse form

Unread post by icoso »

Anyone have a solution on how to do the above and change the Title style using CSS as described?
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Add 2 button to the rows of the browse form

Unread post by steven »

icoso,

Add a style in the Setup section of nuBuilder...
red.PNG
And you can use it like this...
red2.png

Steven
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Add 2 button to the rows of the browse form

Unread post by icoso »

I'll try that.

Why wouldn't putting it in the nubuilder4.css file (that I mentioned above) that's in the core/css folder work?

Honestly I'm about to give up on this system. I think I could have written what I needed to do a lot fast and could have implemented the encryption that I needed much easier and faster than having to learn a brand new system (nuBuilder). Even the basic field masking and field validation is lacking inherently in this system that I had to write it myself. (I actually just borrowed code from other projects that I've already written for this) It was just having to learn the DOM and all the different events and triggers in the BS BE AS BB ... to get it to work.

I've tried to make this system work but not getting much help or direction on the overall flow of how things work together when an issue arises. Providing links to a manual or wiki that really has little real examples in them on how to do something (like examples for the functions) within this system is of little help. A Good example for a really function dictionary is PHP.Net or w3schools. For example, someone provided a link to the v4 manual for reporting and there is basically nothing in it. I found out from a VERY old post that I had to read the version 3 manual for reporting help... The manuals, wikis, and videos are not geared for someone just trying to learn how this system works. A Lot is glazed over that should not be. I would suggest that if you wanted it to expand and be used more, that a lot of focus goes into that. The website claims to be low code and for the non-developer. Its far from it.

Im really trying to make this system work, I can see real value in it, but the whole issue of trying to search using an encrypted field (an SSN) and encrypting other field data has really caused me to doubt this system as a viable option. I've written PHP & MySQL based apps years ago that incorporated encrypting fields and other data in the data tables where the apparent developers here just seemed to think about it as a recent issue.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Add 2 button to the rows of the browse form

Unread post by kev1n »

icoso wrote: Why wouldn't putting it in the nubuilder4.css file (that I mentioned above) that's in the core/css folder work?
When nuBuilder is updated, nubuilder4.css will get overwritten. That is why it is better to override styles in the header.
Otherwise you have to add your own styles after each update which can be very inconvenient.
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Add 2 button to the rows of the browse form

Unread post by icoso »

Thanks kev1n! Makes Sense, I'll put it there and see if it works. Im assuming then that any CSS that I put there in the setup will override the nubuilder4.css that's in the core/css folder. I'd like to change the style of the buttons, ie: use a background image make them bigger. etc. I'd like to make the screen look similar to this when a user logs in. So All they see is buttons to Search/Edit/Add a Record, Run a Report, Export data, etc...
databaseicons2.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Add 2 button to the rows of the browse form

Unread post by kev1n »

Yes, any style declared in the header will override nuBuilder's styles.
Post Reply