Pass custom data to BPM

Hi

We have a custom dashboard that passes information to the Quick Job app. This includes a user defined field for the Sales Order Number.

I am trying to write a BPM that will pick up this user defined field and write the value to a user defined field in the Job Head table.

As the data exists in a data view I don’t believe a BPM can read it. So I bound it to CallContextBpmData.Number01 which I can read with my BPM. For testing purposes I had the BPM show me what sales order number it was reading. The BPM is being triggered on post-processing of the QuickJob.GenerateJob service.

The first time I press save I am returned ‘0’, If I press the save icon again I am given the correct Sales Order Number. I have read that this could be a timing issue, but I don’t know how I can get around this.

Is there another way?

Are you writing a method or data directive?

I am writing a method directive.

If it’s a custom dashboard, what BO/Method are you triggering this on?

Also, is this a kinetic app or a classic dashboard?

I am triggering on the Erp.BO.QuickJobEntry.GenerateJob and it is a Kinetic dashboard.

I have added a dialog box to the row update event and this shows that CallContextBpmData.Number01 is being updated and shows the value of the Sales Order Number which is what I want.

Yet when my Method Directive on Generate Job the information is not being passed. I have an empty dialog box. I have tried this on pre and post-processing.

I am hoping I am missing something really simple.

I have been thinking about this, but don’t have a real solution. My hack would be to test for sales order = 0 on save, and if it is, then try again.

Does your dashboard actually fires the BO method by itself, or does your dashboard open the quick job app, and from there you create the job ? Show us more details

I believe the zero is being shown when there is nothing else to display.

The dashboard does just open the Quick Job app which has been modified to show the Sales Order Number

We the press the ‘Next Job’ button. This populates the part number, revision and sales order number field on the form. It also populates CallContextBpmData.Number01 which is then confirmed by a dialog box to show the value of CallContextBpmData.Number01.

I enter a quantity and press save.


The dialog box now is my PBM that shows that the sales number has not been passed.