Const.PM_TableQueryInsertNewRecord
The PM_TableQueryInsertNewRecord message is sent to table windows and child tables each time a new row is about to be created. If the Application decides to catch the message and let it return TRUE, the new row will be created before the one currently selected. Otherwise, the row will be created after the currently selected row (which is the standard and preferred behavior).
Typically, Application do not have to bother about this message since the standard behavior is having new records created just after the currently selected one. However, there are certain occasions where users wants the new row to be create before the currently selected row, for why this message can be catched returning TRUE.
private void tblAgreementAssortDiscount_WindowActions(object sender, WindowActionsEventArgs e) { switch (e.ActionType) { case Ifs.Fnd.ApplicationForms.Const.PM_TableQueryInsertNewRecord: e.Handled = true; e.Return = true; break; } }