public class TokenMaster extends FormRun {
[Control(/Button/)]
class Enter {
/// <summary>
/// Method executed when the button is clicked.
/// </summary>
public void clicked() {
super(); // Call the parent method
EmployeeDetails EmployeeDetailsEnter; // Child Form
// PositionDetails PositionDetailsEnter;
where TokenMasterEnter.EmpMobNo == EmployeeDetailsEnter.MobNo1;
if (EmployeeDetailsEnter.EmpStatus == EmployeeStatus::Active) {
ttsbegin; // Start a transaction
TokenMasterEnter.EmployeeId = EmployeeDetailsEnter.EmpId;
TokenMasterEnter.Name = EmployeeDetailsEnter.EmpName;
TokenMasterEnter.TknMobNo = EmployeeDetailsEnter.MobNo1;
} else {
Info(/There is no active data./); // Inform the user
}
TokenMaster_ds.reread(); // Reread the data source
TokenMaster_ds.research(); // Research the data source
}
}
}
for your reference Master form