web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    60,969 Super User 2025 Season 2 on at
    RE: GetFilter not working

    try

    yourrecvariabke := CurrPage.SETSELECTIONFILTER(rec);

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

  • Community Member Profile Picture
    on at
    RE: GetFilter not working

    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
    60,969 Super User 2025 Season 2 on at
    RE: GetFilter not working

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans