Skip to content

Instantly share code, notes, and snippets.

@vs4vijay

vs4vijay/gist:7098590

Last active Dec 26, 2015
Embed
What would you like to do?
$scope.saveStudent = function(index, row){
window.ss = $scope.selectedStudent;
window.rr = row;
console.log("$scope.studentGridData[row.rowIndex] " + row);
console.log($scope.studentGridData[row.rowIndex]);
console.log("$scope.selectedStudentselectedStudent : row.rowIndex " + row.rowIndex);
console.log($scope.selectedStudent);
Consolidate.createConsolidationStageStudent($scope.milestoneId, ss[0].StudentName, function(data) {
console.log("$scope.milestoneId : " + $scope.milestoneId);
console.log("ss[0].StudentName : " + ss[0].StudentName);
console.log("received Data : " + data);
});
$scope.applicableStudentList.map(function(obj) {
if(obj.key == ss[0].StudentName) {
console.log("found obj");
console.log(obj);
$scope.studentGridData[row.rowIndex].EnrollmentNumber = obj.enrollmentNumber;
$scope.studentGridData[row.rowIndex].RollNumber = obj.rollNumber;
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment