Saving data struggles

Hello all!

So I’ve added a window in MES that allows viewing and resolving production line exceptions. However I’ve run into a snag. After resolving an exception, on my grid in MES it shows complete but it appears to not be getting saved. (the other issue is why is it in my toolbar I have a save but it doesn’t show up) but all that aside.

I’ve taken a look at the ds data on the network call stack and it seems like on the update that my payload isn’t populating anything. just says ds{} and thus the response is reading empty. I also know for certain that I am getting an entry on my GetByID as it shows accurately in the response for the event call.

Here’s my setup:
Dataview is UD13

Flow that eventually calls save if comment is entered:

Save logic




On GetByID

On Update




Stack output on debug:



I’m honestly so perplexed and not really accustomed to having to wire my own save in epicor so pardon my lack of knowledge

I’m a little puzzled by your Save_c event chain…

You have a BAQ called “UD13”… and that BAQ is going to populate a dataview you called UD13.

You’re then performing a rest call to pull (GetByID) the UD13 dataset to (Again??) populate your UD13 dataview?

… and then, you’re immediately “updating” that dataset (sending the same dataset) back to the server.

Are you trying to alter any of the data prior to saving it back to the server (via Update method)?

Not sure I’m following what you’re trying to do. Perhaps I’m misinterpreting.

~*~

If its helpful, below is my set-up for a UD02 “Update”. (I would recommend deleting your existing Update call and starting from scratch. They get corrupted sometimes and hard to troubleshoot, so it may just be easier to delete it and start new.

Update Method:

Method Parameters:

REQUEST Parameters:

REQUEST Parameters > Dataset:

NO REPONSE Parameters. I’m not looking for a response. I’m saving data to the server… not trying to pull any information back.

Results:
Payload:

Even though I didn’t set up an response parameters, a response is still visible in debugger:

1 Like

Weelll, for anyone who runs into similar issues, i ended up making some adjustments. Switched my BAQ to just a UBAQ and used the kinetic baq update method. I did row-update for each field and then set my datafield selected row to RowMod = “U”. then did grid refresh and closed slideout :slight_smile:

1 Like

I did find an alternate solution but will def give this a try in the future! Appreciate the breakdown!

1 Like

Hey, don’t give ME the solution on this! You found your own solution!

Give yourself some credit! :rofl:

I don’t even know if my setting work for your situation!

1 Like

but you did so much work with all your screenshooottts lol :joy: fiiinee i moved it

1 Like