Forum Discussion

frankkDLL's avatar
frankkDLL
Occasional Contributor
7 years ago

How do you get the Virt DataSource row count

Hi There,

 

Hopefully this is a trivial question, but i just can see it in the API documentation....

 

When accessing datasources for a request via groovy like:

def virtDataSource = mockRequest.getContext().getMockService().dataSources.getVirtDataSource("SomeDataSourceName")

 

Is it possible to get the number of rows specified in the dataSource dynamically?

 

Rgds,

Frank

No RepliesBe the first to reply