It is now successfully deleting rows. Just not updating the grid live.
I tried refreshing the page and adding a grid refresh at the end of the event. Neither refresh my grid, but if close and reopen the preview it refreshes the grid. Why is this the case???
I’m not sure what the setup of your grid is in regards to the events to pull UD02 records, but I think for the built in grid refresh to work you need to have a BAQ set up in provider model? App Studio will essentially create a silent set of events for you in the background that gets triggered when you hit the refresh button.
You can walk through the event chain in debug tools to root out why this isn’t working.
Generally speaking, if you have a DataView UD02 that you are populating, instead of using a grid-refresh, using a kinetic-rest component, call Ice.BO.UD02Svc/GetRows, and feed it the criteria as needed in whereClauseUD02 (leave it blank if you want all the UD02 rows, but it looks like in your setup you want Key1 = ‘PN311’ maybe) - Make sure that it is targeting your UD02 dataview for the data to land in.
While i’d love to get to the bottom of this right now, my shift is ending. But honestly Gabe, big thankyou for your help today. These debug tools are a gamechanger. I can actually see what epicor is doing behind the scenes with ease now.
I kid you not, I was writing Method & Data directives to print a message of variables i was interested in to solve my previous problems. What a headache
I still do that sometimes, depending on my debugging requirements, using Application.Logging from a BPM (vs. InfoMessage.Publish) - the right tool for the job varies!