Archives

Archives / 2020 / January
  • Generic template methods in Acumatica

    Hello everybody,

    today I want to write a few words about Generic template methods in Acumatica. 

    In Acumatica there is such a greate feature as convention over configuration. For example if you want to add reaction in Acumatica on changing the field Description of SOOrder you may do something like this:

    protected void SOOrder_OrderDesc_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e)

    {

    }

    and also it's relatively convenient, but inside of that method you'll need to make some casting operations. For quite a long time Acumatica allows to have new format with usage of underscore:

    protected void _(Events.FieldUpdated<SOOrder, SOOrder.orderDesc> e)

    {

        

    }

    And take a note of … more