web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

copy lines from one form to another form

(0) ShareShare
ReportReport
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
 
 
I have the same question (0)
  • Martin Dráb Profile Picture
    237,693 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?
  • Suggested answer
    Rachit Profile Picture
    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. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans