Hello,
I am working on a customization in Supplier Maintenance which allows the user to enter information via three fields (One combo box and two date fields) which then gets pushed to a UD table when they click on the save button. I have added an EpiUltraGrid which is populated by a BAQ data view. The linked BAQ retrieves certain data from the UD table mentioned previously.
Right now I have the following code below, which creates the BAQ data view when the Supplier is selected. My question is, how can I get the EpiUltraGrid/BAQ data to refresh when the user clicks “Save” so that it will show the newly entered information if applicable?
public void CreateCertificationsBAQView()
{
baqViewCertifications = new BAQDataView("_Vendor_Certifications");
oTrans.Add("CertificationsBAQ", baqViewCertifications);
string pubBinding = "VendorDetail.VendorNum";
IPublisher pub = oTrans.GetPublisher(pubBinding);
if(pub==null)
{
oTrans.PublishColumnChange(pubBinding, "MyCustomPublish");
pub = oTrans.GetPublisher(pubBinding);
}
if(pub!=null)
{
baqViewCertifications.SubscribeToPublisher(pub.PublishName, "UD39_Key1");
}
}
I have already tried adding a Refresh() call to the SaveUD39Record() method but was not successful:
private void SaveUD39Record()
{
// Save adapter data
this._ud39Adapter.Update();
ClearUD39Data();
ugdCertifications.Rows.Refresh(Infragistics.Win.UltraWinGrid.RefreshRow.RefreshDisplay);
}
Any help or guidance is most appreciated!