PopertyChange error

I have script on power table to showing the selected row&Column in ‘Text Area’ .
in case of table query result showing no data on the table .i got this error "Error executing script for event on component Power Table "

if event.propertyName in ["selectedColumn","selectedRow"]:
	     	     value = str(event.source.data.getValueAt(event.source.selectedRow,event.source.selectedColumn))
	             event.source.parent.getComponent('Text Area').text = value

You’ll have to check the rowCount property of the dataset. Only perform the getValueAt() if rowCount>0.

1 Like

Thanks .I used cloumnCount>0 and working fine .With same concept as per your advise.