Loading ...

How To Set Current Record In Acumatica

Hello everybody,

today I want to share one trick which can save you few lines of code.

Imagine case: you created graph, and want to read something from db, and then set current property of that graph view to some value. How to do it in one line? The anser is simple, with help of Search<>

For example it can be like this:

public PXSelectOrderBy<SalesOrder, OrderBy<Asc<SalesOrder.orderNbr>>> Orders;
...
graph.Orders.Current = graph.Orders.Search<SalesOrder.orderNbr>(order.OrderNbr);

Ready to streamline your Acumatica development process even further? If you found this tip on using Search<> to simplify your code helpful, imagine what custom solutions tailored to your specific needs could do! Whether it's optimizing workflows, enhancing functionality, or creating bespoke features, our team is here to help. Leave a customization request today and let’s transform your Acumatica experience together. Your efficiency is just one request away!

Currently rated 4.0 by 1 people

  • Currently 4.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5