2

Good morning,

sometimes we have to modify some standard flowfields for customer needs, adding or modifying the existing filters, but is not possible to extend the calcformula property: can you create a new global trigger, called OnAfterCalculateFlowfield or similar, with the following parameters:

  1. ActualRecordref: recordref
  2. ActualFieldRef: fieldref
  3. var ActualValue: variant

triggered after the flowfield calculation, which allow to manage the flowfield value before his exposition/return?


//New Event

[IntegrationEvent(false, false)]

local procedure OnAfterCalculateFlowfield (ActualRecRef: RecordRef; ActualFieldRef: fieldref; var ActualValue:variant)

begin

end;

//Event Subscription Example

[EventSubscriber(ObjectType::Codeunit, Codeunit::"Global Triggers", 'OnAfterCalculateFlowfield', '', false, false)]

local procedure OnAfterCalculateFlowfield(ActualRecRef: RecordRef; ActualFieldRef: fieldref; var ActualValue:variant)

begin

if (ActualRecRef.Number = database::"Item") and (ActualFieldRef.Number= 68) then

ActualValue:=CalculateInventoryValueUsingCustomerLogic(ActualRecRef, ActualFieldRef);

end;


Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team