How to Create a wizard in x++ d365
step1: Create a form and apply form pattern as wizard
step2 : create a class and extend the class with SysWizard.
code :
class BAS_WIzardScreen extends SysWizard
{
#MACROLIB.AviFiles
FormName formname()
{
return formstr(BAS_WIzardForm); // name of the wizard form
}
public void run()
{
info(strFmt("Thankyou"));
}
public void setupNavigation()
{
}
public boolean validate()
{
return true;
}
public static str description()
{
return "BASOFA WIZARD"; // title of the wizard
}
public static void main(Args _args)
{
BAS_WIzardScreen wizard = new BAS_WIzardScreen();
if (wizard.prompt())
wizard.run();
}
}
step3 : create a action menu item and select the SysWizard class as Object and add it to any module.
Comments
Post a Comment