Skip to content

Instantly share code, notes, and snippets.

@vs4vijay
Last active December 26, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vs4vijay/7098590 to your computer and use it in GitHub Desktop.
Save vs4vijay/7098590 to your computer and use it in GitHub Desktop.
$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