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

Announcements

No record found.

News and Announcements icon
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
 
 
  • Martin Dráb Profile Picture
    240,854 Most Valuable Professional on at
    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
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 523 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 408 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 354

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans