AL icon indicating copy to clipboard operation
AL copied to clipboard

Page Extensions Trigger OnAfterGetCurrRecord not fired, when the C/Side Trigger is empty

Open megel opened this issue 8 years ago • 2 comments

I want to add a new fact box at the "Location List" by page extension:

pageextension 50100 "Location List Ext" extends "Location List"
{
    layout
    {
        addfirst(FactBoxes)
        {
            part(MyPart; MyPart) { }
        }
    }

    trigger OnAfterGetRecord();
    begin
       // This trigger is fired correct
    end;
 
    trigger OnAfterGetCurrRecord();
    begin
       //  This trigger is never fired - becuase the C/Side trigger is empty    
       Message('Trigger fired on: %1', Code);    
    end;
}

Unfortunately the OnAfterGetCurrRecord is never fired.

The current fix is, to add a comment at the C/Side trigger e.g.: grafik

...and the result - my page extension trigger is fired correct: grafik

My Version(s): grafik grafik

megel avatar Jan 09 '18 15:01 megel

I have the same issue. I use the NAV 2018 cu3, AL Language 0.12.17720

geraldbeaulieu877 avatar Mar 20 '18 20:03 geraldbeaulieu877

i have same issues related service. please check all list and card pages.

thank you.

Twija avatar May 08 '18 04:05 Twija