Welcome to the nuBuilder Forums!

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

Get get into field from multiple rows

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Get get into field from multiple rows

Unread post by vanman »

Hi

I need to get the results of multiple rows of the database into one formated field on a form.

Table is
bible_id
bib_bible_books_id
b_name
b_index
b_book
b_chapter
b_verse
b_nasb
b_nkjv
b_esv
b_isv
b_amp
b_niv

I need all the 'b_esv' rows that belong to a 'b_book' show in one large scrollable field on the form 'bib_bible_books_id' is the unique key for the book.

Thank

Paul
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Get get into field from multiple rows

Unread post by kev1n »

Hi Paul

Could you upload a screenshot of a sample output what it should look like? (You could use Excel to illustrate it)
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Get get into field from multiple rows

Unread post by vanman »

kev1n wrote:Hi Paul

Could you upload a screenshot of a sample output what it should look like? (You could use Excel to illustrate it)
Hi Kevin

Thanks for the reply

Option 1 is a dump group_concat I added the carriage returns

Option 2 could be useful but needs to be dynamic for each verse

Sample data attached.

btw the way each row has on average 130 characters and the upper group_concat would be 39,500 characters so group_concat may not work

Paul
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: Get get into field from multiple rows

Unread post by kev1n »

One possibility would be to use PHP and display the output in a html table:
https://forums.nubuilder.cloud/viewtopic. ... =10#p22121
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Get get into field from multiple rows

Unread post by Janusz »

For long texts html is a good solution, works very fast - and you can easilly display hundreds of pages.
Just an example belowe - it's for different subject but it shows some possibility of it.
https://drive.google.com/file/d/1T5L5_s ... sp=sharing
If you like nuBuilder, please leave a review on SourceForge
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Get get into field from multiple rows

Unread post by vanman »

Thank you
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Get get into field from multiple rows

Unread post by admin »

Hey Paul,

How're things?


To get you started I've made a simple database you can use for your Bible stuff.

This is the table structure...
bible.PNG
You'll find a report you can play around with that looks like this...
report.png
Here is the database...
vanman.zip
Enjoy!


Steven
You do not have the required permissions to view the files attached to this post.
vanman
Posts: 54
Joined: Thu Mar 01, 2018 11:09 pm
Has thanked: 1 time

Re: Get get into field from multiple rows

Unread post by vanman »

Hi Steven

Doing well, thank you for your help

Paul
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Get get into field from multiple rows

Unread post by admin »

.
Post Reply