Good morning mega-minds! My company is using Epicor 10.1.500.16.
I’m trying to pass a value assigned to CallContextBpmData.Number20 from a Method Directive to a BPM Data Form. I assign the value (quote number) in custom code in my Method Directive…
I even added a MessageBox to test if the value was being passed, which it wasn’t. I know the value is getting set in the Method Directive because I use a show message module to display the value before calling to the BPM Data Form. I have used the EpiDataView code in custom code for our dashboards and it has worked, but I can’t get it to work in this BPM Data Form.
@NateS Thank you for the reply! I tried the code format in your example, but I still couldn’t return the saved value in “Number20”…
//
// Fill Grid with Data from BAQ on Load
//
private void IP_PMDash_PartsSel_Load(object sender, EventArgs args)
{
// Get Quote Number from ContextBpmData
EpiDataView edvCallContextBpmData = ((EpiDataView)(this.oTrans.EpiDataViews[“CallContextBpmData”]));
System.Data.DataRow edvCallContextBpmDataRow = edvCallContextBpmData.CurrentDataRow;
This must have something to do with custom code in forms versus custom code in BPM Data Forms, though I couldn’t find anything in my search to say that.
I can set the callContextBpmData field in either the custom code or the ‘Set BPM Data Field’ widget, and I can get that to display in the Show Message widget. But when I try to recall that value from the BPM Data Form’s custom code, I get nothing. Doing it the way you’ve demonstrated, if you were to call a BPM Data Form with a customization, would you be able to retrieve the “SN” value assigned to Character01?