I have a Vision power table with a filterable column. I have a label where I show the number of rows when the table is loaded\updated; I get the number of rows with getRowCount(), but it shows the TOTAL number of rows, and I only want the number of rows in the table when the user filters the data. I would appreciate any directions.
Thank you very much for your prompt responses. For those who are new to Ignition, here is how it works:
#Get the number of ALL rows in the table (both filtered and unfiltered.)
data = event.source.parent.getComponent(‘Power Table’).data
count = data.getRowCount()
#Get ONLY the number of rows currently being displayed on the table (filtered rows.)
data = event.source.parent.getComponent(‘Power Table’).viewDataset
count = data.getRowCount()