Tag Archives: Id

Sproutcore RC.Record primary keys, guids and ids

Every Sproutcore record needs a primary key. By default, the primary key is named guid. You can change the name of your primary key by using the primaryKey attribute. For example, below we’ve changed the name of our primary key to userID. Here’s the catch. If you need to retrieve the value of your primaryKey, [...]