How do I create a class scoped variable for a controller in Architect?

I need to keep track of which record index gets selected in a grid in order to mark a the same record associated with a form as dirty so my controller knows to sync the record to the store. Where can I create a variable to store the index in the controller so I can mark the correct record in Architect 2?