Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

show the Records in list page which are not selected .when click the Action trigger

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

show the Records in list page which are not selected .when click  the Action trigger ..it should be show in popup window which are not selected records ...so  for this what code should write in OnAction Trigger ,explain Clear......

*This post is locked for comments

  • Suggested answer
    Guillem Padilla Profile Picture
    Guillem Padilla 425 on at
    RE: show the Records in list page which are not selected .when click the Action trigger

    Hi,

    You can retrieve your selected records using CurrPage.SETSELECTIONFILTER("Record variable");

    This function marks the selected records and sets the "marked only" filter, you have to invert the mark in all records.

    I am not sure if this will work but I would try to do the following:

    After call CurrPage.SETSELECTIONFILTER("Record variable"); function

    Call "Record variable".MARKEDONLY(False); to remove the markedonly filter, and then begin with the invert process

    IF "Record variable".FINDSET THEN
      REPEAT
        "Record variable".MARK := NOT "Record variable".MARK;
      UNTIL "Record variable".NEXT <= 0;

    (I used the < sign to avoid memory leaks)

    "Record variable".MARKEDONLY(True);
    
    PAGE.RUN(........(parameters)...............,"Record variable");

    I have not tried this, but maybe it will help you

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: show the Records in list page which are not selected .when click the Action trigger

    Amazing requirement, Can you go in a level more detail?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,614 on at
    RE: show the Records in list page which are not selected .when click the Action trigger

    You need to provide more details about your requirement and what have you tried till now and what error you are getting. Please don't expect us to write all the code for you, please do some research and try, if something fails or errors let us know we are happy to help.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans