I have an updateable dashboard created by my predecessor that allows our engineers to make some changes to jobs.
I did not realize that this would skip all method directives on jobentry.update Since it uses Ice.Proxy.BO.DynamisQueryImpl to update, that makes sense somewhat. I had made the mistaken assumption that it would then use the update method on jobentry to then update the data.
Is there any possible way to force it to send stuff through the jobentry.update BO or am I stuck trying to figure out how to recreate all necessary my methods onto DynamicQuery? And if so, is there any relatively easy way to determine what kind of data I’m dealing with? I have certain methods that run on jobs, but I don’t want them running on parts, or AP Invoices, or anything else that might be being updated through an updateable dashboard.
You’re right. I tried a trace and that’s where I came up with that BO.
Unfortunately, it looks like it runs through UpdateExt so I’m apparently going to have to copy all my directives on Update to also be on UpdateExt. That’s painful and going to be frustrating when I update one and forget to update the other.
It actually does quite a bit. Our engineers do pretty much all their work from this dashboard and we have quite a few directives on our jobs to make sure things are done the way we want them to.
The one that brought it to my attention was that they can release jobs from the dashboard but we have a BPM in place that does not allow a job to be released until an operation has been marked as the final op. I had jobs released with no final op. The dashboard lets me do that. (It doesn’t now since I put the same directive on UpdateExt)
There are 15 different fields they can potentially update and I have 30 method directives on JobEntry.Update so putting it all into the UBAQ is probably not going to be possible and I’ll just have to put them in UpdateExt. Luckily, copy/paste works in method directive maintenance so hopefully won’t be too overwhelming to copy them. More concerned that my poor memory will cause me to forget to update both in the future.
Maybe…
Honestly, I haven’t begun to play with the function functionality within Epicor. This probably gives me a good excuse to start digging into it. Now to just figure out where to start.
Was trying to start into this but checking the dataset that is being changed has me lost already. I try to put in a conditional where I check the incoming dataset, but that’s not available. I found where to add references to the current tables in the dataset, however, I can’t find where I can pull in the changing one. In other words, if I want to run this in a preprocessing method, not sure how I can check the temporary dataset being used to update.
Was trying to put the method into a function so I could call it in both places. Problem being that one of the first things I do is check some of the fields in the dataset that is being sent to update and I can’t seem to look at the current ds.
That’s unfortunate as I was hoping to actually try the functions out, but considering 95% of what I do in method directives involves either checking the data that is being changed or changing it, these aren’t going to be very helpful if I can’t pass those datasets in.
May I ask how you are passing in the current changing dataset? I can see how to send in the finalized table but not the temporary table being used to update/.