Hello All,
I am trying to trigger FieldSelecting Event in a graph extension for EPApprovalProcess (ScreenID EP503010) but I am not sure why the event is not triggered while in the same extension RowSelected Event is triggered just fine. I had this issue in the past on a different graph that Generic Method was not working and with
Please see the below code I have tried all possible methods but none of them are triggered.
using PX.Data;
using PX.Objects.EP;
using static PX.Objects.EP.EPApprovalProcess;
namespace MYTest
{
// ScreenID EP503010
public class MYEPApprovalProcessExt : PXGraphExtension<EPApprovalProcess>
{
public static bool IsActive() => true;
// This Row Selected Event IS triggered
protected virtual void _(Events.RowSelected<EPOwned> e, PXRowSelected baseHandler)
{
if (e.Row == null) return;
}
// The below Field Selecting Events are NOT triggered
protected virtual void _(Events.FieldSelecting<EPOwned, EPOwned.noteID> e)
{
if (e.Row == null) return;
}
protected virtual void _(Events.FieldSelecting<EPOwned, EPOwned.noteID> e, PXFieldSelecting baseHandler)
{
if (e.Row == null) return;
}
protected void EPOwned_NoteID_FieldSelecting(PXCache cache, PXFieldSelectingEventArgs e)
{
if (e.Row == null) return;
}
protected void EPOwned_NoteID_FieldSelecting(PXCache cache, PXFieldVerifyingEventArgs e, PXFieldSelecting baseHandler)
{
if (e.Row == null) return;
}
}
}
Best answer by Yuriy Zaletskyy
View original