After .onRowSelect, the record's id is 'undefined'

BTW: You will also find some STARTING-CODE, which was maden in the very beginning of this project.

Read all the given stuff (it is really a lot of information given in this example).
Just navigate trough all the added, posts and databases.
Start with the ORIGINAL-POST and you will learn a lot.