BAQDataView Subscribe to unbound field value

Is it possible to Subscribe a BAQDataView to a field not associated with an EpiDataView? Specifically, I want to Subscribe a BAQDataView to the CalendarInfo.ActiveDay.Date value from the Calendar control in Time and Expense Entry. This value is updated and stored in “oTrans.SelectedDate”.

image

The following code compiles without errors, however, no data is retrieved due to no ColumnChange method associated with oTrans.SelectedDate.

	private void CreateBAQDataViews()
	{
		this.baqLaborEntry = new BAQDataView("edvLaborEntry");
		oTrans.Add("LaborEntry", this.baqLaborEntry);
		
		string bindSelectedDate = "oTrans.SelectedDate";
		IPublisher pubSelectedDate = oTrans.GetPublisher(bindSelectedDate);
		if(pubSelectedDate == null)
		{
			oTrans.PublishColumnChange(bindSelectedDate, "mySelectedDate");
			pubSelectedDate = oTrans.GetPublisher(bindSelectedDate);
		}
		if(pubSelectedDate != null)
		{
			this.baqLaborEntry.SubscribeToPublisher(pubSelectedDate.PublishName, "LaborDtl_PayrollDate");
		}
	}

Figured it out base on this post…

1 Like