I need to add a grid to the Invoice Entry Screen which will subscribe to the DataView contained in the form already called InvcGrp.GroupID. I’m not sure how I write that column from that Data View. This is what I have so far but it is erroring out saying InvcGrp does not exist in the current context.
private void CreateInvoiceEntryDataView()
{
GS_Invoice_Entry = new BAQDataView("GS_Invoice_Entry");
oTrans.Add("GS_Invoice_Entry", GS_Invoice_Entry);
var GroupID = InvcGrp.GroupID; //THIS IS NOT WORKING RIGHT HERE. HOW DO I REFERENCE DATAVIEW HERE
oTrans.PublishColumnChange(GroupID, Guid.NewGuid().ToString());
var GroupIDPub = oTrans.GetPublisher(GroupID);
GS_Invoice_Entry.SubscribeToPublisher(GroupIDPub.PublishName, "InvcHead_GroupID");
}
Screenshot from the Customer Object Explorer Data Object Window on this field:
