setDetailsMapping method

dynamic setDetailsMapping(
  1. dynamic controllers
)

Sets the details mapping with the provided controllers.

Implementation

setDetailsMapping(controllers) {
  courseCode = controllers[3].text.toUpperCase();
  cellMappings[Mapping.details] = [
    {
      "sheet": "START",
      "cos": controllers[7].text,
      // "pos": controllers[8].text,
      // "psos": controllers[9].text,
      "mappings": {
        Cell.details.name: controllers[0].text,
        Cell.details.designation: controllers[1].text,
        Cell.details.courseName: controllers[2].text,
        Cell.details.courseCode: controllers[3].text,
        Cell.details.branch: controllers[4].text,
        Cell.details.semester: controllers[5].text,
        Cell.details.academicYear: controllers[6].text,
      }
    }
  ];
}