AL icon indicating copy to clipboard operation
AL copied to clipboard

OnAfterGetCurrRecord Production BOM List

Open deano808 opened this issue 8 years ago • 3 comments

I have a page extension that extends Production BOM List.

I'm trying to control the Enabled property of an Action in my extension based on the record selected. I've created a trigger OnAfterGetCurrRecord that contains the call to my code. The page extension events triggers run only when I first open the page. Selecting different records in the list doesn't call the expected trigger.

If i modify the standard object and add code to the OnAfterGetCurrRecord and OnAfterGetRecord trigger, the trigger in the page extension is called.

deano808 avatar Jul 20 '18 15:07 deano808

Could you please provide sample AL code that illustrates the problem?

StanislawStempin avatar Oct 25 '18 07:10 StanislawStempin

I cannot reproduce your issue using the following sample code:

pageextension 50100 BomExtension extends "Production BOM List"
{
    trigger OnAfterGetCurrRecord()
    begin
        Message('trigger');
    end;
}

The message trigger is shown after selecting each record on the production bom list.

StanislawStempin avatar Nov 02 '18 10:11 StanislawStempin

Closing due to the fact that we couldn't reproduce the issue and for lack of additional input.

StanislawStempin avatar Nov 07 '18 12:11 StanislawStempin