How to add nested inputs in actionsheet controller


#1

There is a list which contains firebase data.that list is showing by FirebaseListObservable.

this is a sample picture.when i clicked on an item i need to get examno and marks as in the picture and need to put exam no as node in firebase and marks as a value.if the exam no is different there need to be two nodes.
exam1 and exam to.

i tried with an actionsheet but can;t add two values like i want.Can anyone please help me.

addStudentresults(studentId, studentName,studentMarks,examNo){
  let prompt = this.alertCtrl.create({
    title: 'Add exam results',
    message: "Update the details for this student",
    inputs: [
    
       {
        name: 'examno',
        placeholder: 'examno',
        value: examNo
      },

       {
        name: 'marks',
        placeholder: 'Marks',
        value: studentMarks
      }
    ],
    buttons: [
      {
        text: 'Cancel',
        handler: data => {
          console.log('Cancel clicked');
        }
      },
      {
        text: 'Save',
        handler: data => {
          this.students.update(studentId, {
            examresults:{
             examno:data.examno,
             marks:data.marks}
          });
        }
      }
    ]
  });
  prompt.present();
}

in action sheets it says can’t use push method to add this kind of values.

any solution???

Thank You