Hi everyone,
I have a BAQ DataView on the Quote entry screen which displays the customer’s EORI number. Everything works well until I view a closed quote when I get a message saying that the Quote is closed and cannot be updated. the only way to escape the message is to close the Quote screen. I have unchecked the ‘Prevent Changes’ to quoted quotes but it has made no difference. I have another BAQ DataView on the quote which has been there a while and has never been a problem. I have placed the code below, if someone can spot what is causing my problem, that would be great!
public void CreateCustEORINumBAQDV()
{
custEORINumBAQDV = new BAQDataView("DMT-Customer-EORI");
oTrans.Add("CustEORINumBAQDV",custEORINumBAQDV);
string pubBinding = "QuoteHed.CustNum";
IPublisher pub = oTrans.GetPublisher(pubBinding);
if(pub==null)
{
string pubName = Guid.NewGuid().ToString();
oTrans.PublishColumnChange(pubBinding, pubName);
pub = oTrans.GetPublisher(pubBinding);
}
if(pub !=null)
custEORINumBAQDV.SubscribeToPublisher(pub.PublishName, "Customer_CustNum");
}