cancel
Showing results for 
Search instead for 
Did you mean: 

Get Table Row Count

nikhil_bose
Active Contributor
0 Kudos

hi folks,

How to get a tables' row count (number of records)?

Values of table are filled by an RFC return structure. Or how can we get the number of records in the RFC return structure?

thanks in advance

nikhil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the size of the node bound to the table

lets say orders is the node bound to the table


//Replace orders with the node bound to your table.
wdContext.nodeOrders().size();

Regards

Ayyapparaj

nikhil_bose
Active Contributor
0 Kudos

thanks ayyapparaj,

but i am getting 1 as size when using node.size().

former_member182374
Active Contributor
0 Kudos

Hi,

Make sure you are quering the correct node.

Sometimes the context looks like this:

Zmm_XXX (node)

--Output (node)

-


Item (node)

-


ID (value)

-


Description (value)

in this case you should use wdContext.nodeItem().size()

Omri

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nikhil

Can't you just do the following on the return structure:

wdContext.node().size().

Regards

Göran