Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

SetSelection Filter

(1) ShareShare
ReportReport
Posted on by 23
Hi all,
      I have Transfer some record from One table to Another table , here i need to transfer Only Selected Item From one from another ,I will try But Its won't Work 
Kindly Help me 
 
this is my code ..
 
                        RecStagingOutJnl.RESET;
                        RecStagingOutJnl.SETRANGE(RecStagingOutJnl."Upload in STD", false)
                        RecStagingOutJnl.SETRANGE(RecStagingOutJnl."Uploded in STD", FALSE);
                        CurrPage.SetSelectionFilter(Rec);
                        IF RecStagingOutJnl.FINDSET THEN BEGIN // rec - custom table ..
                         ----
                         ----
                        End;
 
thanks In Advance..
  • Suggested answer
    Ramiz Profile Picture
    Ramiz 368 on at
    SetSelection Filter
    Hi,

    As mentioned by YUN ZHU, you need to loop the record.
     
                    trigger OnAction()
                    var
                        Customer: Record Customer;
                    begin
                        CurrPage.SetSelectionFilter(Customer);
                        if Customer.FindSet() then
                            repeat
                            //Code
                            until Customer.Next() = 0;
                    end;
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,218 Super User 2024 Season 2 on at
    SetSelection Filter
    It seems that there is no loop, and you will only insert one piece of data this way. Try the Repeat-until control structure.
     
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 5,496 on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,575 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans