Skip to main content
Answer

Add custom column for total

  • November 15, 2022
  • 3 replies
  • 215 views

param2022
Jr Varsity II
Forum|alt.badge.img

I want to add a new column for the custom calculation on total of all inventory item’s Ext.Price.  How do achieve that. The value should update as the new field is added to the details tab.

Best answer by Naveen Boga

Hi, @param2022  This requires a customization, please find the details for the customization.

  1. Extend the SOOrder DAC and add a new field
  2. Write a field selecting an event for this field and add logic to get the Ext Price sum from the Details tab
  3. FieldSelecting code will be useful to show the updated sum in the header level. Apart from this override a Persist() method and add the same logic to get the sum from the Details tab and assign it to the extended field and update the caches.

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • November 15, 2022

Hi, @param2022  This requires a customization, please find the details for the customization.

  1. Extend the SOOrder DAC and add a new field
  2. Write a field selecting an event for this field and add logic to get the Ext Price sum from the Details tab
  3. FieldSelecting code will be useful to show the updated sum in the header level. Apart from this override a Persist() method and add the same logic to get the sum from the Details tab and assign it to the extended field and update the caches.

param2022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • November 15, 2022

@Naveen Boga I didn’t understand the 3rd point you are trying to make. I have achieved the first 2. Are you suggesting for the RowPersist action ??


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 15, 2022

Yes that is correct @param2022