cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

get current Datatable row count

SOLVED
Highlighted
Moonstone

get current Datatable row count

when I write services behind current datatable, I need to get number of rows of this datatable.

this is my code I used: 

var result = me.getRowCount();

the output should be integer.

 

but after I run this code, here is output error says: cannnot find functon getRowCount in object com.thingworx.datatables.

 

how to fix this problem?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: get current Datatable row count

Use this service instead:  GetDataTableEntryCount

View solution in original post

3 REPLIES 3

Re: get current Datatable row count

The getRowCount() service is only used in infotable, so it returns the size of a infotable chunk, not the Datatable entity.

Re: get current Datatable row count

Use this service instead:  GetDataTableEntryCount

View solution in original post

Re: get current Datatable row count

ok. thank you. it helps

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________