Hey,
I’m setting a context variable in a data directive after configuration save. There are a couple of things I want to do when it returns.
So in the customization:
// check for configuration save
EpiDataView edvCallContextBpmData = (EpiDataView)(oTrans.EpiDataViews["CallContextBpmData"]);
edvCallContextBpmData.Notify(new EpiNotifyArgs(oTrans, edvCallContextBpmData.Row, edvCallContextBpmData.Column));
MessageBox.Show("check for configured code " + edvCallContextBpmData.dataView[edvCallContextBpmData.Row]["Character18"].ToString());
if (edvCallContextBpmData.dataView[edvCallContextBpmData.Row]["Character18"].ToString() == "Configured")
{
MessageBox.Show("line configured");
edvCallContextBpmData.dataView[edvCallContextBpmData.Row].BeginEdit();
edvCallContextBpmData.dataView[edvCallContextBpmData.Row]["Character18"] = "";
edvCallContextBpmData.dataView[edvCallContextBpmData.Row].EndEdit();
oTrans.Update();
}
The problem is that we don’t see the new field value until we get a save. I want to do a save only if the context variable is set.
I’ve added a notify() line, but it doesn’t seem to make any difference.
Any advice?
Thanks,
Joe