-
Notifications
You must be signed in to change notification settings - Fork 682
Description
Why do you need this change?
Dear team,
We would like to request the inclusion of the CurrentFieldNo variable in selected events. This enhancement is necessary to support our business logic, which requires identifying the specific field that triggered the event in order to determine whether to proceed with standard processing or apply custom functionality.
Having access to CurrentFieldNo within these events would provide the flexibility needed to tailor behavior based on the context of the field interaction.
We appreciate your consideration and are happy to provide a list of the specific events where this variable would be beneficial.
Describe the request
On function GetDefaultBin():
We would like to add the CurrentFieldNo variable into event OnBeforeGetDefaultBin();
NEW CODE:
OnBeforeGetDefaultBin(Rec, CurrentFieldNo, IsHandled);

On function DeleteItemChargeAssignment():
We would like to add the CurrentFieldNo variable into event OnBeforeDeleteItemChargeAssignment();
NEW CODE:
OnBeforeDeleteItemChargeAssignment(DocType, DocNo, DocLineNo, CurrentFieldNo, IsHandled);

On function CheckApplFromItemLedgEntry()
We would like to add the CurrentFieldNo variable into event OnBeforeDeleteItemChargeAssignment();
NEW CODE:
OnBeforeCheckApplFromItemLedgEntry(Rec, xRec, ItemLedgEntry, CurrentFieldNo, IsHandled);

Also, on function UpdateItemReference(CalledByFieldNo: Integer):
We would like to add new event at start of function to manage.
NEW CODE:
IsHandled := false;
OnBeforeUpdateItemReference(Rec, xRec, CalledByFieldNo, IsHandled);
if IsHandled then
exit;

We appreciate your consideration and are happy to provide further details on the specific context and conditions involved.
Internal work item: AB#610408