Hi,
I have a custom BPM Dataform that query’s job materials based on the Job number and populates a UltraGrid.
My issue is that the UltraGrid won’t load on the form opening however if I change the job number it will pull in the data.
I think it is something to do with the Publisher waiting for a change to the column and I need to publish it on opening however I could be wrong.
public void CreateBPMTriggerDataview()
{
bPMTriggerDataview = new BAQDataView("JobMtlDataView");
oTrans.Add("BPMTriggerDataview", bPMTriggerDataview);
string pub1Binding = "BPMData.Character10";
IPublisher pub1 = oTrans.GetPublisher(pub1Binding);
if (pub1 == null)
{
//string pubName = Guid.NewGuid().ToString();//
oTrans.PublishColumnChange(pub1Binding, "MyCustomPublish");
pub1 = oTrans.GetPublisher(pub1Binding);
}
if (pub1 != null)
bPMTriggerDataview.SubscribeToPublisher(pub1.PublishName, "JobMtl_JobNum");
}