Perspective table what is props.data, cause scripts don't think it's a dataset

Could you provide a screenshot?
Could you provide the actual code, as opposed to the pseudo-code you provided? Pseudo-code is the absolute worst thing to provide when you're encountering an error in your code.