im opening the form based on account type selected as below.
______________________
[Control("Button")]
class NextButton
{
/// <summary>
///
/// </summary>
public void clicked()
{
if(RegistrationTableTmp.AccountType == AccountType::Business)
{
new MenuFunction(menuItemDisplayStr(BusinessAccDlgMI), MenuItemType::Display).run();
}
else if(RegistrationTableTmp.AccountType == AccountType::FixedDeposit)
{
new MenuFunction(menuItemDisplayStr(FDAccTypeDlgMI), MenuItemType::Display).run();
}
else if(RegistrationTableTmp.AccountType == AccountType::Salary)
{
new MenuFunction(menuItemDisplayStr(SalaryAccDlgMI), MenuItemType::Display).run();
}
else
{
// for savings default close
RegistrationTableTmp_ds.formRun().close();
}
// after entering data in 2 mi close
// RegistrationTableTmp_ds.formRun().close();
}
}