I was told by someone wise on here to always put a pop-up in the directives to see the actual data that is going back and forth. Many times the dataset does not include what you think it does.
Try that and see if the data you are expecting is actually there.
Put a “Show Message” widget in, click on the “designed” field, and a new window will appear. Click in the body of the window and click the Insert button. Choose either Field Query or Table Query and select the fields you want to see. When done, when you transact you will now get a popup with the table/field you selected. It is one of the best tips that I have gotten on here.
Oh, I missed that it was a data directive. What you will have to do is a BPM to capture the before value and put it in a BPM data field to retrieve it when you get to the data directive.
What was the solution to this issue?
Use a Standard or In-transaction Data Directive?
What table do you capture the “before” field value?
Wat table do you capture the “after” or “changed” field value?
You need to create a Method Directive on whatever method is being called to make the change. In that directive you would capture the old value and put it in a field in the callContextBPMData. Then create a Standard Data Directive that displays the old (from the call context) and new fields.
Should it be a Pre-Processing Method directive? I have tried this on BO.SalesOrder.Update using a condition that NeedByDate, ShipViaCode, or FOB is changed from any to another, then using three Set BPM Date Field widget to capture those fields, but I am not getting the expected results. This is my Method Directive:
Thank you. I tried this in SalesOrder and it worked.
But does not seem to work when I am trying to track changes in my Job Start Date. I have created an In Transaction Data Directive in JobHead table with condition of, if JobHead Start Date changes from Any to Other then a Show Message with the Unchanged JobHead Start Date. I get the pop up message when the start date changes, but it is just blank, does not give me the previos value.
Have also tried doing it in Method directive in Job Entry Update, but I don’t get anything from here, even the pop up message. Do you know how I can track the before and after for the Job Start Date? I was able to succefully track before and after data from Job ReqDue date but unfortunately not for the Start Date.
There are times when you use a field has changed condition that the old row doesn’t get sent into code and you have to just use code to see if the field has changed.