How to create a jumpref and open on record


public static void jumpRefBomTable(
    BOMTable _bomTable,
    Object   _caller,
    str      _parm = '')
{
    Args    args;
    FormRun fr;

    args = new Args(formstr(BomTable));
    args.caller(_caller);
    args.parm(_parm);

    // Menu item info will be used by security framework, when setting access rights to form datasources
    args.menuItemType(MenuItemType::Display);
    args.menuItemName(menuitemDisplayStr(BomTable));

    fr = classfactory.formRunClass(args);
    fr.init();
    fr.run();
    fr.dataSource().findRecord(_bomTable);
    fr.detach();
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.