If you have TabPages in your form you can use this functionality in the overrided method "pageActivated"
For example in your TabPage you have a checkBox to disable in case of multiple selections.
then you can use this code for example
c = 1;
Heade_family.enabled(true);
for(Employee = PayrollEmployee_ds.getFirst(true)?PayrollEmployee_ds.getFirst(true):PayrollEmployee_ds.cursor();Employee;Employee=PayrollEmployee_ds.getNext())
{
if(c>1)
{
Heade_family.enabled(false);
break;
}
for(Employee = PayrollEmployee_ds.getFirst(true)?PayrollEmployee_ds.getFirst(true):PayrollEmployee_ds.cursor();Employee;Employee=PayrollEmployee_ds.getNext())
{
if(c>1)
{
Heade_family.enabled(false);
break;
}
else
{
// write your code here
}
c++;
}
Happy Daxing !
Aucun commentaire:
Enregistrer un commentaire