static void Fcc_AlertTestEvent(Args _args)
{
EventInbox inbox;
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
//inbox.AlertTableId = tablenum(Address);
//inbox.AlertFieldId = fieldnum(Address, Name);
//inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();
}
static void Fcc_AlertTest(Args _args)
{
EventNotificationSync alert;
MenuFunction MenuFunction;
str dataSourceName;
Name _subject ="Entered is greater than Current Stock Onhand Qty";
Name _bodyMsg = "Ensure you are entered Qty is greater than Stock on Hand Qty";
UserId _user;
;
_user = curUserId();
//dataSourceName = tablestr(PurchLine);
//MenuFunction = new MenuFunction(menuitemdisplaystr(PurchTable), MenuItemType::Display);
alert = EventNotificationsync::newInfo(_subject,
_bodyMsg,
_bodyMsg,
NoYes::NO);
alert.parmUserId(_user);
alert.create();
}
{
EventInbox inbox;
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
//inbox.AlertTableId = tablenum(Address);
//inbox.AlertFieldId = fieldnum(Address, Name);
//inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();
}
static void Fcc_AlertTest(Args _args)
{
EventNotificationSync alert;
MenuFunction MenuFunction;
str dataSourceName;
Name _subject ="Entered is greater than Current Stock Onhand Qty";
Name _bodyMsg = "Ensure you are entered Qty is greater than Stock on Hand Qty";
UserId _user;
;
_user = curUserId();
//dataSourceName = tablestr(PurchLine);
//MenuFunction = new MenuFunction(menuitemdisplaystr(PurchTable), MenuItemType::Display);
alert = EventNotificationsync::newInfo(_subject,
_bodyMsg,
_bodyMsg,
NoYes::NO);
alert.parmUserId(_user);
alert.create();
}
No comments:
Post a Comment