Set data for record