Some assistance would be greatly appreciated here as I am attempting to add a customization to a classic screen. I have added a tab to Supplier for Certifications and then added a text and date picker. Added a Form Event wizard, thinking that this will be dedicated to a supplier. Saved the Customization layer and applied it to Menu Maint.
The problem is that the text label and date picker are not specific to the Supplier ID, rather just on the form. (entering Test123 as the Cert and end of month for the date, it applies to every supplier instead of the vender specific to a venter ID.)
How do I tie the customization to the Vender ID.
// **************************************************
// Custom code for VendorForm
// Created: 2024-08-09 1:23:23 PM
// **************************************************
extern alias Erp_Contracts_BO_Vendor;
extern alias Erp_Contracts_BO_APInvoice;
extern alias Erp_Contracts_BO_LogAPInv;
extern alias Erp_Contracts_BO_APPromissoryNotes;
extern alias Erp_Contracts_BO_Company;
extern alias Erp_Contracts_BO_Customer;
extern alias Erp_Contracts_BO_PaymentEntry;
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.Adapters;
using Erp.UI;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
public class Script
{
// ** Wizard Insert Location - Do Not Remove ‘Begin/End Wizard Added Module Level Variables’ Comments! **
// Begin Wizard Added Module Level Variables **
private EpiDataView edvVendorDetail;
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
this.edvVendorDetail = ((EpiDataView)(this.oTrans.EpiDataViews["VendorDetail"]));
this.edvVendorDetail.EpiViewNotification += new EpiViewNotification(this.edvVendorDetail_EpiViewNotification);
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
this.edvVendorDetail.EpiViewNotification -= new EpiViewNotification(this.edvVendorDetail_EpiViewNotification);
this.edvVendorDetail = null;
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
// End Custom Code Disposal
}
private void edvVendorDetail_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
{
// ** Argument Properties and Uses **
// view.dataView[args.Row]["FieldName"]
// args.Row, args.Column, args.Sender, args.NotifyType
// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
if ((args.NotifyType == EpiTransaction.NotifyType.AddRow))
{
if ((args.Row > -1))
{
}
}
}
private void VendorForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
}
}