Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

copy lines from one form to another form

Posted on by 58
Hi all,
 
i have header table and lines table so here i created a master form where i created a display menu item button. so when i clicked that button another form will be opened, in that form we can choose the lines to copy.
 
anyone have any idea how to copy lines from one form to another
please tell me
 
thanks in advance
 
 
  • Suggested answer
    Rachit Profile Picture
    Rachit 4,015 User Group Leader on at
    copy lines from one form to another form
    You have to elaborate your query if you are expecting a good response. There are many ways to achieve this.
    I recommend doing a search on standard forms where similar functionality exists. For example look at form SalesCopying which is called form Sales order details page to copy lines from existing sales orders. Run the process, debug the code and you will understand how the standard form uses copying functionality. The process uses TmpFrmVirtual table to temporary stage the data. 
    Another way is to get the caller form data source object and use it to loop through the records. 
  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    copy lines from one form to another form
    Please tell us more about the requested logic.
     
    What exactly is the purpose of the other form? If it should copy the lines (from another header to the current on), then let it do its job and then just research the lines data source in the main form.
     
    By the way, what's your version of AX?

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

Product updates

Dynamics 365 release plans