Tuesday, 23 July 2013

Multi Selection code

Multi selection:
Write code in form method as
Set button property as Multiselection property yes
And write the method in form
void clicked()
{
    StudentInformation studentInformationloc;
    StudentDetails     studentDetails;
    super();
    //recordcount = ReservationCancellation_ds.recordsMarked().lastIndex();
    studentInformationloc = studentInformation_ds.getFirst(1);
    while(studentInformationloc)
    {
    studentDetails.Course = studentInformationloc.Course;
    //info(strFmt("%1",ReservationCancellationloc.Status));
    studentDetails.insert();
    studentInformationloc = studentInformation_ds.getNext();
    }
    studentInformation_ds.refresh();
    studentInformation_ds.research();


}

This code is for we select multi record and click on button then that records fields insert in to another table


No comments:

Post a Comment