Skip to main content

Notifications

Business Central forum
Suggested answer

rec.setrange("Location Code"); bug and highlight the line

Posted on by 110
Hi,
 
I've come across something I never encountered before while resetting some filters in AL. I have a custom page from a partner app that returns the inventory in the sales order. This code use to work just fine but since we have done the Business Central update to go on version 24, the line that is selected in this page is highlighted and you can't see any value. I've tried multiple test to figure out why but no result so far. Anyone ever seen anything similar ?
 
Result
 
Code
pageextension 80098 InvInqExt extends "XXXXXXXXXXXX"
{
 
    trigger OnOpenPage()
    begin
        rec.setrange("Date Filter");
        rec.setrange("Location Code");
    end;
 
}
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,116 Super User 2024 Season 2 on at
    rec.setrange("Location Code"); bug and highlight the line
    I suspect that the method of collecting data in the partner app has been changed.
    For example, it used to collect all the data and then add filters, so you can remove the filters.
    But now the efficiency has been improved, only the required data is collected, not all the data, so even if you remove the filters, there is no way to display all the data.
    This is just my guess, I hope it can give you some tips.
     
    Thanks
    ZHU

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

Dynamics 365 Community Update – Sep 16th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,435 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans