Sunday, 15 May 2016

Open the Form with Grid View using x++ code

void clicked()
{
    Args args = new Args();
    super();
    args.record(InventTable);
    args.caller(this);
    args.formViewOption(FormViewOption::Grid); // Opens the form with Grid as default View
    new MenuFunction(menuitemDisplayStr(EcoResProductDetailsExtended), MenuItemType::Display).run(args);
}

No comments:

Post a Comment