Skip to content

[Event Request] Table 37 "Sales Line" - add variable CurrentFieldNo into events #29303

@D365DNM

Description

@D365DNM

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);

Image

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

Image

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

Image

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;

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions