Welcome to the nuBuilder Forums!

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

counting rows and colum

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

Re: counting rows and colum

Unread post by admin »

Johan,

Neither do I,

I suggest that you try to understand what the code is doing, bit by bit.

Steven
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: counting rows and colum

Unread post by johan »

Steven,

Why is the database (the nuBuilder part) used for video training not between the live demo's or in the the download at the bottom of the page Video Training ? That would make it a lot easier for me to understand the video training.

Thanks again

BTW I would like to download Build Number 11.09.19. But when I go to download I still got version 11.03.22.

Johan
zazzium
Posts: 84
Joined: Mon Jul 04, 2011 12:52 am

Re: counting rows and colum

Unread post by zazzium »

BTW I would like to download Build Number 11.09.19. But when I go to download I still got version 11.03.22.
Here it is
http://sourceforge.net/projects/nubuild ... nubuilder/
It's like early Christmas... but better :)
Last edited by zazzium on Fri Sep 23, 2011 11:51 am, edited 1 time in total.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: counting rows and colum

Unread post by johan »

great, thanks again,

Johan
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: counting rows and colum

Unread post by johan »

Steven,
Me again;

I'm still trying to count. I was looking around in some java tutorials and find out what document.getElementByID should do.

I started my code with

Code: Select all

if (pthis.length == 18) {
		//
   		PRE = pthis;
   	} else {  
		// 
   		PRE = pthis.name.substring(0,18);	
 
  	}
Using alert I get an object from the subform, this seems to be ok.

When I try the next step

Code: Select all

aantal                              = Number(document.getElementById(PRE+'fd_aantal'.value));
using alert I always get 0 instead of the value In the table. Do you have any idea what I'm doing wrong?

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

Re: counting rows and colum

Unread post by admin »

Johan,

Code: Select all

    aantal                              = Number(document.getElementById(PRE+'fd_aantal'.value));
I have underlined the fix to your problem in red..

Number(document.getElementById(PRE+'fd_aantal').value);


Steven
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: counting rows and colum

Unread post by johan »

Steven

Solved at last.

The problem was in my PRE.

Thanks again for all your help.

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

Re: counting rows and colum

Unread post by admin »

Johan,

Well done!

Steven
Locked