Ideas to implement an Order Change Log

I am looking for ideas on how to implement a Order Change log. The idea is to add a new tab to the order entry which will display a Order Change Log as a grid with fields line #, change date, amount and description. The user will enter all fields whenever they make a change to an order line dollar value, add or delete a line, etc or cancel an order entirely.

Specifically looking on how I could define and link a db table to the OrderHed? Can I use UD tables, not sure how I could link it? Any other ideas?

Why not just use the bookings functionality. It does pretty much exactly that and is already on the order entry form.


Hmmm, can you just enable the change log on the table via a data directive?


I took a look at the booking function, it does capture some of what we want but not exactly. The same for logging, we are not looking to log every action. The idea of this is to leave it to the user to track specific activities at both the line and header level. Currently they are entering this information into an Order Change Log spreadsheet. This data will be used in reporting of monthly sales activities. If I need to do some custom coding to achieve this, that is fine.

You can add a UD Table as a child, then add that tab and grid to your screen to make lists of whatever you want. In the customization editor, there is a wizard to do this and it does most of the setup work for you. Then you can simply add a grid, bind to the view that was created for you, and off you go. Obviously there is going to be some tweaking, but it’s not too hard.

1 Like

Why not just have the system capture the changes to the fields on the table you specify you want logging on? A simple data directive on the OrderHed and OrderDtl tables with the change log workflow element will achieve this.

What if your users forget to add their changes?

Certainly a user can forget to add their changes, but they are currently trained to enter those changes in the Order Change Log spreadsheet and that has been working fine for many years. The change log would give too much information. We would like to capture a reason for a change as well, example a price increase was due to customer requested a different paint type.

The Book Details captures much of the information we need, just not everything we what in this instance. I have turned book details on just for the audit trail.

I like the idea of adding the UD Table, I will explore that option next.

1 Like

Another thought would be to add UD fields to the Bookings table, for things like reason and comments. You could then create a BPM that would provide a BPM Form to capture the Reason and Comments WHEN either a certain Booking type record is created or the change is ‘significant enough’ (for the BPM conditions to prompt the BPM Form.
I did something similar to this for the Order Header for when the Ship By Date is changed. It pops up a BPM Form prompting for comments and a Reason Code, which we created Reason Codes in UD Code Entry AKA User Codes Entry.

While the current process has been working fine for years, you have an opportunity here to automate a bit of that process and only prompt the user for additional details when needed, which can free up time to be used towards more value added tasks.

1 Like

Where do I find instruction or example on adding a UD Table as a child? Where is the wizard found to do this? I could not find anything in the customization editor.

I’m not at my computer, but in the menu items at the top of the customization editor, there is an option I think called customization wizards. When you open that there is a menu that let’s you choose what you want to do. Add UD table as a child is one of the options (other options include extended properties I think). Then you pick what you want your keys to be. It’s all based on the views that are in the screen you are customizing. So on your case order entry.

What about a UD reason field that is captured in the built in change log. The field is cleared on a post process order update directive. You could add custom validation that the field needs a reason after a user changes certain fields.

Found it. I was looking at the Wizards Tab vs the Tools->Wizards Menu. Thanks

1 Like

While I appreciate everyone’s thoughts on this…I truly believe an over-engineered solution is being pushed here. The solution being proposed is more time consuming for the end users to enter the data accurately, and they may not like needing to navigate to an extra screen. Why not use automation and make their job a little easier too? While I don’t have 20 min right now to whip up a demo of what I am thinking, I can give a high level overview.

  1. Add a “Reason” field on the order entry screen tied to a ud field (we will validate off this to ensure users enter a reason)
  2. Include the reason field, and whatever fields you want to monitor in the change log on the order head and dtl data directives
  3. Add validation that the reason field is populated with data using a method directive on the change existing order business object
  4. Clear the reason field after an update using c#

Simple. Elegant. Effective. The reasons will be captured by the change log and whichever fields you want to monitor automatically. 1. You will make their job easier with less data entry 2. You will have more accurate data (you could even use UD codes for reasons so that reasons are consistent) and 3. You look like a superstar :wink:

1 Like

Elegant until you realize you are storing a numeric value someone wants to report on in the middle of one long text field that is tracking all your changes. They would go back to the spreadsheet a week later when they try to add up the changes on an order.

1 Like

Testing adding the UD Table as a child. Does this wizard actually work? I have added the table and linked a couple fields, the code gets generated. I have yet to compile it as the errors are endless.

I was able to do it without much hassle. You are on the order entry screen?

I tried it and it worked just fine. Added Key1 and Key2 as OrderNum and OrderLine. It finished, now compile errors. What are some of the errors that you are seeing?

We are on different versions though, so maybe there has been some work done on it.

Yes, Order Entry screen and OrderNum and OrderLine fields added.

from the EUG website

Okay, so a search of Epicare’s sup[port KB revealed KB0030682 which basically says that in order to actually do this you have to match up the first 4 UD Key fields with something, otherwise there is nothing to return with a vague reference to possibly handling missing keys better in the future.

To fix it, he just used duplicate values for the keys he didn’t need. (so make both Key3 and Key4 orderline or something)

Obviously it’s been fixed in future versions. That user was on 10.2.100

And his would compile and was on a different screen, so it may not be the same problem.

I added Company, OrderNum, OrderLine and PartNum to use up all four fields. Still won’t compile.

Can you paste the list of errors in here? And did you start with a blank customization? (had to ask)