Following up on this. Yes, “$resource” is available, so I don’t need to use getObject here. Don’t know why I did that; I suspect I copied this script from somewhere else I used it, in a place where $resource wasn’t available. Much simpler!
Ideally, you wouldn’t even need to do that. The value of the TV is generated on the fly when the resource editing form is loaded. The question is, how do we get that data into the TV in the form without having to use the database at all? If I knew more about how ExtJS works, I could probably inject some javascript to make that happen.
I’m continuing that topic here: