RowDefaulting And Copy Paste In Acumatica Or Copy Paste Mode In Acumatica
Hello everybody,
recently I had the following situation.
According to business logic, I created RowDefaulting. And it worked great. Then business analyst decided to check copy/paste functionality of Acumatica, and you know what? He discovered that copy/paste is broken. After investigation I discovered that it was due to RowDefaulting event. For me it meant the following, I need to turn off RowDefaulting after copy/paste.
After usage of reflector, I noticed interesting property IsCopyPasteContext in the graph.
So I modified function RowDefaulting.
private void RowDefaulting(PXGraph graph)
{
if( !graph.IsCopyPasteContext )
{
//do some row defaulting logic.
}
}
Hope you enjoyed this tip
Ready to take your Acumatica development to the next level? Whether you're tackling complex business logic, optimizing workflows, or customizing your system to meet unique needs, our team is here to help. If you have a customization request or need expert guidance to solve a tricky development challenge, don’t hesitate to reach out! Leave us a request today, and let’s build solutions that work seamlessly for your business. Your next breakthrough is just a click away!