I've added a few fields through a table extension, when a record is inserted into the table I want to populate those fields with some data prior to the insert.
I've created a static class and added the event to it, but it doesn't fire, My breakpoint in visual studio never gets hit and the data doesnt show up in the table. I've done all of the normal, database sync, reboot, etc.
static class MyRetailGiftCardTransactionsEventHandlers
{
[DataEventHandler(tableStr(RetailGiftCardTransactions), DataEventType::Inserting)]
public static void RetailGiftCardTransactions_onInserting(Common sender, DataEventArgs e)
{
RetailGiftCardTransactions r = sender as RetailGiftCardTransactions;
r.myCustomField ='1234';
}
}
Anyone have any input?
*This post is locked for comments