Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

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

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......

  • 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 43,640 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

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,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans