Hi All,
You can call form methods in X++ using the code below.
static void callingFormMethod(Args _args)
{
Args args = new Args("Address"); //Address is the FormName
FormRun formRun = ClassFactory.formRunClass(args);
;
print(formRun.owner().returnIntValue()); //returnIntValue is the dispaly method in Address Form
pause;
}
No comments:
Post a Comment