ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

report 25 "Account Schedule" - OnAfteCheckIsLineSkipped

Open xtiche opened this issue 3 years ago • 3 comments

Please make variable LineSkipped protected, not private And please add event on DataItem dataitem("Column Layout"; "Column Layout")

trigger OnAfterGetRecord()
var
    ValueIsEmpty: Boolean;
begin
    if Show = Show::Never then
        CurrReport.Skip();

    Header := "Column Header";
    RoundingHeader := '';

    if "Rounding Factor" in ["Rounding Factor"::"1000", "Rounding Factor"::"1000000"] then
        case "Rounding Factor" of
            "Rounding Factor"::"1000":
                RoundingHeader := Text000;
            "Rounding Factor"::"1000000":
                RoundingHeader := Text001;
        end;

    ColumnValuesAsText := CalcColumnValueAsText("Acc. Schedule Line", "Column Layout", ValueIsEmpty);

    ColumnValuesArrayIndex += 1;
    if ColumnValuesArrayIndex <= ArrayLen(ColumnValuesArrayText) then
        ColumnValuesArrayText[ColumnValuesArrayIndex] := ColumnValuesAsText;

    if (not ValueIsEmpty) or (("Acc. Schedule Line".Show = "Acc. Schedule Line".Show::Yes) and not SkipEmptyLines) or
        (("Acc. Schedule Line".Totaling = '') and ("Acc. Schedule Line".Show = "Acc. Schedule Line".Show::Yes))
    then
        LineSkipped := false;
        
   // New event >>
   OnAfteCheckIsLineSkipped("Acc. Schedule Line",ValueIsEmpty,LineSkipped);
   // New event <<
end;

xtiche avatar Jun 01 '23 11:06 xtiche

Hi @xtiche, Please make new request for the part "Please make variable LineSkipped protected, not private" This one will be used for new event request.

AleksandricMarko avatar Jun 01 '23 11:06 AleksandricMarko

Done - https://github.com/microsoft/ALAppExtensions/issues/23659

xtiche avatar Jun 01 '23 11:06 xtiche

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: 11004.

JesperSchulz avatar Jun 03 '23 11:06 JesperSchulz