microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
748 stars 600 forks source link

[Event Change Request] TAB37 Sales Line - procedure SelectMultipleItems - Event OnBeforeSelectMultipleItems #26753

Closed MH1612 closed 4 days ago

MH1612 commented 1 week ago

Describe the request

We would like add IsHandled added to the following events.

Original:

TAB37 Sales Line - procedure SelectMultipleItems - Event OnBeforeSelectMultipleItems

    procedure SelectMultipleItems()
    var
        ItemListPage: Page "Item List";
        SelectionFilter: Text;
    begin
        OnBeforeSelectMultipleItems(Rec);

        if IsCreditDocType() then
            SelectionFilter := ItemListPage.SelectActiveItems()

    [IntegrationEvent(false, false)]
    local procedure OnBeforeSelectMultipleItems(var SalesLine: Record "Sales Line")
    begin
    end;

Change:

    procedure SelectMultipleItems()
    var
        ItemListPage: Page "Item List";
        SelectionFilter: Text;
        IsHandled : Boolean;
    begin
        IsHandled := FALSE;
        OnBeforeSelectMultipleItems(Rec,IsHandled);
        IF IsHandled THEN
          EXIT;

        if IsCreditDocType() then
            SelectionFilter := ItemListPage.SelectActiveItems()

    [IntegrationEvent(false, false)]
    local procedure OnBeforeSelectMultipleItems(var SalesLine: Record "Sales Line"; var IsHandled : Boolean)
    begin
    end;

Additional context

Add a custom Filter on ItemPage Internal work item: AB#539827

JesperSchulz commented 4 days ago

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 21509.