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.
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.
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
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.