get focus from the FORM in dynamcis AX 2009
static void Jimmy_activateWindow(Args _args)
{
FormRun fr;
Args args = new Args();
CustTable CustTable = CustTable::find("WIB-CHN");
;
args.name(formstr(CustTable));
args.record(CustTable);
fr = classfactory.formRunClass(args);
fr.init();
fr.run();
fr.detach();
// info("Form was shown, now the infolog will be in front of it");
// infolog.viewUpdate();
infolog.activateWindow(fr.hWnd());//get focus from the form
}

浙公网安备 33010602011771号