Oct 23, 2012

How to open a a form on button click ?


void clicked()
{
    Menufunction       menufunction ;
    Args                    args = new Args();
    FormRun              formRun;
    ;
    
    if(MyTable.StatusId == " ")
    {
        throw error("Please fill the StatusId of the record ");
    }
    else
    {
    args.record(MyTable);
    menufunction  = new Menufunction(menuitemdisplaystr(MyTrans),menuItemType::Display);
    formRun         = menufunction.create(args);
    formRun.run();
    formRun.wait(true);
  
      }
   
}

No comments: