Skip to Content
0
Dec 08, 2022 at 10:26 AM

Custom screen status field value not updating.

125 Views Last edit Dec 10, 2022 at 01:50 AM 2 rev

Hi,

I have created a solution in which I cancel Purchase Orders using SOAP calls, lets call ithis solution "A".
I also have another screen in a different solution that also displays Purchase Orders and their status, lets call this solution "B".
When I run the script in solution A, the PO gets cancelled successfully and if you open the PO itself, its status is indeed cancelled.
But in solution B which has a screen that displays the status of the PO(meaning the value of the PO's own status field), the status is not updated, it does not change to cancelled and remains on "sent".

A complication:
Because solution B has its own extension fields and has before save and after modified running on an XBO of purchase order, I was forced to add an exception to it that if it detects that changes are being made to a PO by the technical user of solution A, it should ignore running the after modified and before save and "return" from them.

If i remove the above exception solution A can no longer successfully cancel POs.
Could it be that because of this exception that prevents the scripts from running, the status in the screen of solution B does not change despite the fact that the status of the actual PO did change?
If so what can i do about it?

Thanks in advance.