Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)
Posted on by 3,027

Hi

   What the below code will do


PLine.SETFILTER("Contract No.",'%1',"No.");
PLine1.COPY(PLine);

Thanks

*This post is locked for comments

  • Verified answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Copy

    PLine.SETFILTER("Contract No.",'%1',"No.");

    - This will filter Contract No of Pline with NO.

    PLine1.COPY(PLine);

    - THis will copy all filtered record of Pline that you did above in the first line to Pline1.

  • Verified answer
    Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Copy

    Hi,

    PLine.SETFILTER("Contract No.",'%1',"No.");

    The above line will filter out and select all the records where 'Contract No.' of your PLine table is equal to 'No.' of the other table.

    PLine1.COPY(PLine);

    The above line will copy records of PLine table which are filtered out using setfilter and place them in the 'PLine1' table.

  • ManishS Profile Picture
    ManishS 6,578 on at
  • Suggested answer
    Marcellus Profile Picture
    Marcellus 2,735 on at
    RE: Copy

    Hi Jsshivalik,

    Check this article on msdn: [View:https://msdn.microsoft.com/en-us/library/dd338735(v=nav.90).aspx]

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans