Hi @Naveen Boga ,Thank you for your package. However, The result is not change.Could you please share what you touch? I see the code is still the same
Hi @Naveen Boga ,Here is the version information
Hi @Naveen Boga , please find the project find in attachments.
Hi @Naveen Boga,Actually, I don’t have source code of all library in the system so I modified event handling by using customization project editor Sorry for asking a dump question, but is there any way for using visual studio to debugging when I don’t have all source code of library? Thank you
Hi @Naveen Boga ,I have tried your code but the order is still nullpublic class SOShipmentEntry_Extension : PXGraphExtension<SOShipmentEntry> { #region Event Handlers public delegate void PersistDelegate(); [PXOverride] public void Persist(Action del) { if (Base.Document.Cache.GetStatus((object)Base.Document.Current) == PXEntryStatus.Inserted) { SOOrderEntry orderGraph = PXGraph.CreateInstance<SOOrderEntry>(); SOOrder objOrder = PXSelectJoin<SOOrder, InnerJoin<SOOrderShipment, On<SOOrder.orderType, Equal<SOOrderShipment.orderType>, And<SOOrder.orderNbr, Equal<SOOrderShipment.orderNbr>>>>, Where<SOOrderShipment.shipmentNbr, Equal<Required<SOOrderShipment.shipmentNbr>>>>.Select(Base, Base.Document.Current?.ShipmentNbr); i
Hi @Naveen Boga ,Thank you for your answer. I just realize that I can’t update SO after I create Shipment for it.The idea is I want to copy data of custom field to Shipment.Could we set value for this custom field in event of creating Shipment (take value from Sale Orders)?Do you have any piece of code similar with goal? Regards,Khoi
Hi @mrthanhkhoi FieldUpdated event is triggered when, indeed, a field value has changed. It is not a matter of efficiency. In my example I am saying that the description will be copied “only” when the invoice is saved. This way I guarantee that I will have the last value specified by the user copied over. I suggest you engage in the training courses provided by Acumatica where all these details are explained with really good examples and exercises https://openuni.acumatica.com/courses/development/ Thank you very much for your help.
Hi @Leonardo Justiniano ,Thank you very much for your answer.I am a newbie for Acumatica so I don’t have much knowledge about this, I have a concern that why don’t we use event FieldUpdate? It should be more efficient than an event on Row (e.g: RowPersisting) Regards,Khoi
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.