Skip to main content
Answer

PXLongOperation.SetCurrentItem method removed in Acumatica 2023 R1

  • July 13, 2023
  • 2 replies
  • 98 views

angelesosorno86
Jr Varsity II
Forum|alt.badge.img

Hello everyone! I have a question, I recently had to update my custom code, but I saw that the PXLongOperation.SetCurrentItem method was removed in Acuamtica 2023 R1. Does anyone know what I'll have to do or if the method has another implementation?

Any help would be appreciated :) 

Thank you so much for your attention!

Best answer by Zoltan Febert

Hi @angelesosorno86,

PXLongOperation.SetCurrentItem is an internal function at least since 22R2, but you can use PXProcessing.SetCurrentItem instead.

PXProcessing<Customer>.SetCurrentItem(customer);

 

2 replies

Zoltan Febert
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • Answer
  • July 13, 2023

Hi @angelesosorno86,

PXLongOperation.SetCurrentItem is an internal function at least since 22R2, but you can use PXProcessing.SetCurrentItem instead.

PXProcessing<Customer>.SetCurrentItem(customer);

 


angelesosorno86
Jr Varsity II
Forum|alt.badge.img

Hi @zfebert56  thank you for your answer, I’ll try it :)