get current Datatable row count
Nov 12, 2019
11:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 12, 2019
11:17 PM
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?
Solved! Go to Solution.
ACCEPTED SOLUTION
Accepted Solutions
Nov 13, 2019
02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 13, 2019
02:36 AM
Use this service instead: GetDataTableEntryCount
3 REPLIES 3
Nov 13, 2019
02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 13, 2019
02:35 AM
The getRowCount() service is only used in infotable, so it returns the size of a infotable chunk, not the Datatable entity.
Nov 13, 2019
02:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 13, 2019
02:36 AM
Use this service instead: GetDataTableEntryCount
Nov 13, 2019
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nov 13, 2019
05:37 AM
ok. thank you. it helps
