Hello.
I’m trying to get access to dataset from customization and after that set the rowstate as changed.
Then update dataset so the BO will fire update method where I add some code.
I have a checkbox binded to CallContext so it will tell BPM it needs to do something.
You can modify any CallContextBpmData field and call oTrans.Update() method. It’ll trigger BPM.
Hi Pawel,
The following should do what you need. This is being run on order entry hence the use of the OrderDtl table.
EpiDataView edvOrderDtl = ((EpiDataView)(Script.oTrans.EpiDataViews["OrderDtl"]));
DataRow edvOrderDtlRow = edvOrderDtl.CurrentDataRow;
EpiDataView edvCallContextBpmData = ((EpiDataView)(Script.oTrans.EpiDataViews["CallContextBpmData"]));
DataRow edvCallContextBpmDataRow = edvCallContextBpmData.CurrentDataRow;
edvCallContextBpmDataRow.BeginEdit();
edvCallContextBpmDataRow["ShortChar10"] = "job";
edvCallContextBpmDataRow["ShortChar09"] = "pick";
edvCallContextBpmDataRow["CheckBox01"] = true;
edvCallContextBpmDataRow.EndEdit();
edvOrderDtlRow["RowMod"] = "U";
oTrans.Update();
1 Like