Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Count table rows

DKinsley
Level 9
Level 9

My table does NOT have repeating rows. Using JavaScript, how can I count the number of rows?

var vRows = Table1.Question.count:

1 Accepted Solution
Magus069
Correct answer by
Level 10
Level 10

Not repeating rows, that's why you get 1... If you have 47 rows with all different names Row1, Row2, Row3, Row4 [...] it is normal you get a count of 1 for each because you do not add instances to a row named Row1 but you have 47 different rows

View solution in original post

0 Replies
MAPIZ
Level 2
Level 2

Try using Table1.instanceManager.count();

DKinsley
Level 9
Level 9

I tried Table1.instanceManager.count():

and

Tabel1.Row.instanceManager.count():

and neither worked.

Magus069
Level 10
Level 10

That is because the count is not a method, it is only a property... remove the '()'

DKinsley
Level 9
Level 9

I tried the following:

this.rawValue = Table1.Row.instanceManager.count;

and i tried...

this.rawvalue = Table1.instanceManager.count;

and the result was 1 for each script but my form has 47 rows (not repeating rows).

Magus069
Correct answer by
Level 10
Level 10

Not repeating rows, that's why you get 1... If you have 47 rows with all different names Row1, Row2, Row3, Row4 [...] it is normal you get a count of 1 for each because you do not add instances to a row named Row1 but you have 47 different rows

View solution in original post