web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Is There a VS Code trigger for OnNextRecord in Pages or Page Extensions

(0) ShareShare
ReportReport
Posted on by 1,305

I've used OnNextRecord to test complex field relationships in the past but do not see a like trigger in the AL environment.  Any suggestions?

Categories:
I have the same question (0)
  • MohitMalik8085 Profile Picture
    100 on at

    Hi Dan,

    There are all the standard triggers available in AL same as C-SIDE. You can get them to access by typing ttrigger.

    here is the OnNextRecord:

    trigger OnNextRecord(Steps: Integer): Integer
    var
    myInt: Integer;
    begin
    end;
    This is available on page or extension of a page.....
  • Dan Eckhoff Profile Picture
    1,305 on at

    Thanks for the reply, but what version of AL are you using?  

    OnNextRecord.png

    I'm on 3.0.115791 of the AL Language and I get the message that 'OnNextRecord' is not a valid trigger.

  • Suggested answer
    MohitMalik8085 Profile Picture
    100 on at

    Hi Dan,

    I am also using the same version. please follow these below steps.

    type ttriggers-->Enter

    you will found the below code

    trigger OnWhat()

    var

       myInt: Integer;

    begin

    end;

    now you remove the Onwhat(), and type OnNextrecord

    while you will start typing you will found a list of all triggers and you can choose from that list as

    trigger OnNextRecord(Steps: Integer): Integer

    Regards

    Mohit Malik

  • Dan Eckhoff Profile Picture
    1,305 on at

    Mohit,

    2605.OnNextRecord.png

    I'm on AL Language version 3.0.115791 and I still don't see OnNextRecord.  I've uploaded a screenshot showing my options.  This was on a fresh "Hello World".  I did change the mod so that it was on the Customer Card rather than the list.  The mod runs fine before I try to add OnNextRecord().

  • Suggested answer
    MohitMalik8085 Profile Picture
    100 on at

    Hi Dan,

    Please remove both breckets () and try type onnextrecord.

    I have written in my previous reply that remove onwhat().

    Please try.

    Regards

    Mohit Malik

  • Dan Eckhoff Profile Picture
    1,305 on at

    Mohit,

    The () don't make any difference, however, I did try that several times before and again after your last message just to be sure.

    Thank you,

    Dan

  • MohitMalik8085 Profile Picture
    100 on at

    Sorry Dan,

    Whatever I tried till now already written..

    But () makes difference because for OnNextRecord(), breckets holds the parameter.

    I had also faced same issue to find the trigger but later I got the same by doing this only...

    Well thanks. ...

  • Dan Eckhoff Profile Picture
    1,305 on at

    No worries, Mohit.  I appreciate the response...just hope someone else picks it up as well.  Frustrating to say the least...

  • Dan Eckhoff Profile Picture
    1,305 on at

    I've tried other things as well:

    1. Upgraded to CU4

    2. Rebuilt Symbols

    3. Upgraded the AL Language Extension

    4. Compiled and Synchronized a dozen times

    Help!!!

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,300 Super User 2026 Season 1 on at

    It's not on mine as well.

    Microsoft probably disabled the OnNextRecord trigger for dev.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans