Dataset Expression Row Count

I have a dataset and I would like to check to see if the dataset contains any rows in an expression binding. I know to access the dataset values, you use “Dataset_Expression [x,y]”. Is there a way to check how many rows are in the dataset, similar to data.getRowCount()?

You should be able to check the row count of a dataset in the expression language by simply using the len() function:

len({referenceToDataset})
2 Likes

Note that this capability of the len() expression is new in 8.1.8, for any users still on an older version.

Do you mean somewhere it broke and was fixed for 8.1.8? Because this functionality goes way back.

I think he’s mixed up adding expanded support for arrays and collections. Looks like the len function has supported DataSets for a long time.

3 Likes