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 :
Microsoft Dynamics NAV (Archived)

GetFilter not working

(0) ShareShare
ReportReport
Posted on by

Hi,

I want a message box to print the number of the row I have selected. This is my code that should work.

Test := Rec.GETFILTER("No.");

MESSAGE('The current selected asset is %1.',Test);

However, no value is being passed to Test. Is this something to do with FilterGroup function?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,206 Super User 2026 Season 1 on at

    try

    yourrecvariabke := CurrPage.SETSELECTIONFILTER(rec);

    MESSAGE('The current selected asset is %1.',yourrecvariabke .count);

  • Community Member Profile Picture
    on at

    Thanks for replying Mohana,

    Unfortunately it doesn't work. It says "Type conversion is not possible because 1 of the operators contains an invalid type.   Text := VOID

  • Verified answer
    Mohana Yadav Profile Picture
    61,206 Super User 2026 Season 1 on at

    sorry, my bad, Friday right?

    CurrPage.SETSELECTIONFILTER(REC);

    MESSAGE('The current selected asset is %1.',Rec.count);

    still, didnt test

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans