I searched here to no avail. I want to run some code when a New PO record is created. What event do I need to capture a New PO record?
For others, I just did this with the AfterToolClick method.
My code:
//After making a new PO, select the supplier field instead of the PO date field.
private void POEntryForm_AfterToolClick(object sender, Ice.Lib.Framework.AfterToolClickEventArgs args)
{
EpiTextBox txtVendorID;
//MessageBox.Show(args.Tool.Key);
if (args.Tool.Key != null )
{
if (args.Tool.Key.Equals("EpiAddNewnewPO"))
{
txtVendorID = (EpiTextBox)csm.GetNativeControlReference("00844fe6-60e6-4d26-bb91-0529be22e671");
txtVendorID.Focus();
}
}
}
Nice lead here:
Could also do it with EpiNotify, some help here: