//D365 Info添加超链接到主表 public void showMessage(PurchTable _purchTable) { MenuItemMessageAction menuItemMessageAction = new MenuItemMessageAction(); menuItemMessageAction.MenuItemName(menuItemDisplayStr(PurchTable)); menuItemMessageAction.TableName(tableStr(PurchTable)); menuItemMessageAction.RecId(_purchTable.RecId); Message::AddAction(MessageSeverity::Informational, strfmt("@SYS82024", _purchTable.PurchId), _purchTable.PurchId, MessageActionType::DisplayMenuItem, FormJsonSerializer::serializeClass(menuItemMessageAction)); }