ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Page 232 Apply Customer Entries OnApplyCustomerEntriesOnFindRecord

Open akontos opened this issue 4 years ago • 4 comments

Please Add an Event OnApplyCustomerEntriesOnFindRecord in Page 232 Apply Customer Entries

trigger OnFindRecord(Which: Text): Boolean
    var
        Found: Boolean;
        IsHandled: Boolean;
    begin
        OnApplyCustomerEntriesOnFindRecord(Rec, Which, Found, IsHandled);
        if IsHandled then
            exit(Found);
        exit(true);
    end;
[IntegrationEvent(true, false)]
    local procedure OnApplyCustomerEntriesOnFindRecord(CustLedgerEntry: Record "Cust. Ledger Entry"; Which: Text; var Found: Boolean; var IsHandled: Boolean)
    begin
    end;

Thank You!

akontos avatar Jan 17 '22 15:01 akontos

We cannot add an empty trigger, since in will break default behavior of this page, so we cannot add such event

Stepanenko-Vadim avatar Feb 04 '22 11:02 Stepanenko-Vadim

Please Check the Code. It won't break anything. You already did that in page 554 "Analysis by Dimensions"

akontos avatar Feb 04 '22 12:02 akontos

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.

JesperSchulz avatar Feb 14 '22 07:02 JesperSchulz

@akontos We had to remove this event and the OnFindRecord trigger, because just having that trigger on the page, introduces a severe performance regression that affected over 400 live users on Business Central Online. If you need custom code in OnFindRecord and OnNextRecord on "Apply Vendor Entries" and "Apply Customer Entries", we suggest that you make a copy of these pages and implement those triggers in your copy of the page. Also, extend places in Business Central where these pages are invoked from, and invoke your copy of the page. We removed all 4 events that were requested in: https://github.com/microsoft/ALAppExtensions/issues/15879 https://github.com/microsoft/ALAppExtensions/issues/15880 https://github.com/microsoft/ALAppExtensions/issues/15881 https://github.com/microsoft/ALAppExtensions/issues/15882

dcenic avatar Oct 10 '22 07:10 dcenic