Launch BPM Data Form From Customization

You could fire the BPM form based on a field change and update that field with you button click. It wouldn’t need to be field on the table you could use one of the BPM Data fields.
This code would toggle CallContextBpmData.CheckBox01 and save.

			EpiDataView edvCallContextBpmData = ((EpiDataView)(this.oTrans.EpiDataViews["CallContextBpmData"]));
			System.Data.DataRow edvCallContextBpmDataRow = edvCallContextBpmData.CurrentDataRow;
			if ((edvCallContextBpmDataRow != null))
			{
				edvCallContextBpmDataRow.BeginEdit();
				if(edvCallContextBpmDataRow["Checkbox01"] == DBNull.Value)
				{
					edvCallContextBpmDataRow["Checkbox01"] = true;
				}
				else
				{
					edvCallContextBpmDataRow["Checkbox01"] = !(bool)edvCallContextBpmDataRow["Checkbox01"];
				}
				edvCallContextBpmDataRow.EndEdit();
				oTrans.Update();
			}

Or you could skip the BPM form and do the pop-up in your customization, but that’s kind of a pain since you have to code all your field placements.

3 Likes