{"id":1571,"date":"2018-09-19T09:51:24","date_gmt":"2018-09-19T14:51:24","guid":{"rendered":"https:\/\/www.teamdesk.net\/blog\/?p=1571"},"modified":"2021-09-28T04:44:07","modified_gmt":"2021-09-28T09:44:07","slug":"generate-copies-of-master-and-copy-master-details","status":"publish","type":"post","link":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/","title":{"rendered":"Generate Copies of Master and Copy Master Details"},"content":{"rendered":"<p>If your online database includes related tables, you may need to copy a Master record and copy master Details listed in the related details views . To simplify this process, the custom buttons with the Navigate actions can be adjusted.<br \/>\nLet\u2019s consider the Project Management database, where each project record is related to many Stages and to many Project Personal records keeping employees involved into this project.<br \/>\nSo, each Project record comprises two <a href=\"https:\/\/www.teamdesk.net\/help\/8.6.aspx\">details views<\/a>: Stages and Project Personnel.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Online-Database.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1574\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Online-Database.png\" alt=\"Database Online\" width=\"936\" height=\"810\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Online-Database.png 936w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Online-Database-300x260.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Online-Database-768x665.png 768w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/a><\/p>\n<p>What you need is to copy the Project master record and copy master details related to the project.<br \/>\nThe adjustment requires the following steps:<\/p>\n<h2>1. Auxiliary reference column<\/h2>\n<p>First of all, create a new <a href=\"https:\/\/www.teamdesk.net\/help\/4.3.aspx\">single-reference<\/a> column in the Projects table. This column should refer to the Projects table. In simple words the table refers to itself.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-reference-column-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1576\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-reference-column-1.png\" alt=\"\" width=\"979\" height=\"714\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-reference-column-1.png 979w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-reference-column-1-300x219.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-reference-column-1-768x560.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n<h2>2. \u201cCopy Project Record\u201d button<\/h2>\n<p>In terms of relation the Projects table is a <a href=\"https:\/\/www.teamdesk.net\/help\/8.1.aspx\">Master table<\/a>. Therefore the first <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.aspx\">custom button<\/a> should create a copy of the Master record. In our example this is the \u201cCopy Project Record\u201d button.<br \/>\nBesides, it should be the <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.1.aspx\">Preview Page button<\/a> with the <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.7.aspx\">Navigate action<\/a>.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Project-Button-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1577\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Project-Button-2.png\" alt=\"Copy Project Button\" width=\"937\" height=\"630\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Project-Button-2.png 937w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Project-Button-2-300x202.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Project-Button-2-768x516.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/a><\/p>\n<p>The \u201cNavigate (Create Project Copy)\u201d action navigates a New record creation in the Projects table.<\/p>\n<p>The navigate action settings are displayed below:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/New-Navigate-Project-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1578\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/New-Navigate-Project-3.png\" alt=\"Navigate Action\" width=\"927\" height=\"581\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/New-Navigate-Project-3.png 927w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/New-Navigate-Project-3-300x188.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/New-Navigate-Project-3-768x481.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/a><\/p>\n<p>Moreover, this action comprises assignments. These assignments copy the project column values to a new project record. In our example the \u201cClient\u201d column values and the \u201cName\u201d column value of a\u00a0project are copied. Furthermore, \u201cProject Id\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/4.13.aspx\">key column<\/a> value is copied into the \u201cProject Copy (auxiliary)\u201d column. This auxiliary reference column was created in the beginning. Please, note, that this last assignment is very important.<\/p>\n<h2>3. Auxiliary Formulas<\/h2>\n<p>Before the adjustment of the other buttons you need to add some auxiliary formulas in the details tables. In terms of relation the Stages table and the Project Personnel table are <a href=\"https:\/\/www.teamdesk.net\/help\/8.1.aspx\">Details tables<\/a>. Hence they keep details records related to a Project.<br \/>\nOn this step you should create a <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.16.aspx\">Formula-Text column<\/a> with the same formula in each Details table. This formula will pull the record Id value assigned by the system.<br \/>\nSo, in the Stages table you should add the \u201cStage Record Id (auxiliary)\u201d formula-text column:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1579\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-4.png\" alt=\"\" width=\"941\" height=\"410\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-4.png 941w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-4-300x131.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-4-768x335.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/a><\/p>\n<p>Also, in the Project Personnel table you should add the \u201cProject Personnel Record Id (auxiliary)\u201d formula-text column:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1580\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-5.png\" alt=\"Auxiliary Formula\" width=\"980\" height=\"402\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-5.png 980w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-5-300x123.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Formulas-5-768x315.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>As a result, you will use each formula-column in the <span class=\"gt-baf-back\">appropriate<\/span> summary column described below.<\/p>\n<h2>4. Auxiliary Summary columns with Concatenate function<\/h2>\n<p>The next step is the <a href=\"https:\/\/www.teamdesk.net\/help\/4.5.aspx\">Summary columns<\/a> adding. These columns work like auxiliary columns only. So, we need to create two summary columns in the Projects table, because we have to copy master details kept in two details views (Stages and Project Personnel).<br \/>\nYou can create the first Summary column in the Stages-Project relation, the second in the Project Personnel &#8211; Project relation.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1581\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6.png\" alt=\"Relations &amp; Summary Columns\" width=\"1061\" height=\"587\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6.png 1061w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6-300x166.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6-768x425.png 768w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summaries-6-1024x567.png 1024w\" sizes=\"auto, (max-width: 1061px) 100vw, 1061px\" \/><\/a><\/p>\n<p>The settings of the \u201cRelated Stages Record Id Concatenate (auxiliary)\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.20.aspx\">summary column<\/a> are displayed on this screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1582\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7.png\" alt=\"Summary Column 1\" width=\"1053\" height=\"580\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7.png 1053w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7-300x165.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7-768x423.png 768w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-7-1024x564.png 1024w\" sizes=\"auto, (max-width: 1053px) 100vw, 1053px\" \/><\/a><\/p>\n<p>You can see the settings of the \u201cRelated Personnel Record Id Concatenate (auxiliary)\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.20.aspx\">summary column<\/a> on this screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1583\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8.png\" alt=\"Summary Column 2\" width=\"1056\" height=\"593\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8.png 1056w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8-300x168.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8-768x431.png 768w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Summary-8-1024x575.png 1024w\" sizes=\"auto, (max-width: 1056px) 100vw, 1056px\" \/><\/a><\/p>\n<p>As a result, these summary columns will help to create the auxiliary Lookup columns.<\/p>\n<h2>5. Auxiliary Lookup columns<\/h2>\n<p>Now you need to create <a href=\"https:\/\/www.teamdesk.net\/help\/4.4.aspx\">lookup columns<\/a>, that will help to copy master details. There are two details views in the database, therefore you created two auxiliary summary columns. Now the goal is to pull the summary columns values via lookup columns of the auxiliary Project-Project relation. This relation was created automatically when you added the \u201cProject Copy (auxiliary)\u201d single-reference column mentioned in the very beginning.<br \/>\nSo, you need two auxiliary lookup columns. Each lookup can pull values from the \u201cRelated Stages Record Id Concatenate (auxiliary)\u201d summary column and the \u201cRelated Personnel Record Id Concatenate (auxiliary)\u201d summary column respectively.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1585\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9.png\" alt=\"Auxiliary Lookups\" width=\"1065\" height=\"408\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9.png 1065w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9-300x115.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9-768x294.png 768w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookups-9-1024x392.png 1024w\" sizes=\"auto, (max-width: 1065px) 100vw, 1065px\" \/><\/a><\/p>\n<p>You can review the <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.19.aspx\">settings<\/a> of the \u201cRelated Stages Ids lookup (auxiliary)\u201d column below:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1586\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-10.png\" alt=\"Auxiliary Lookup 1\" width=\"982\" height=\"498\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-10.png 982w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-10-300x152.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-10-768x389.png 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><\/a><\/p>\n<p>The <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.19.aspx\">settings<\/a> of the \u201cRelated Project Personnel Ids lookup (auxiliary)\u201d column are displayed on this screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1587\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-11.png\" alt=\"Auxiliary Lookup 2\" width=\"979\" height=\"495\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-11.png 979w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-11-300x152.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Lookup-11-768x388.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n<h2>6. Auxiliary Text Columns in the Details tables<\/h2>\n<p>Furthermore, you have to <a href=\"https:\/\/www.teamdesk.net\/help\/4.2.aspx\">add<\/a> a new <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.2.aspx\">Text column<\/a>, let\u2019s name it \u201cMaster Copy Id (auxiliary)\u201d column, to the Stages table. After that create the same text column in the Project Personnel table.<br \/>\nWhen you generate a Stage copy, the initial Stage record has to keep the Project Id value of the last Project copy. This value is assigned to the \u201cMaster Copy Id (auxiliary)\u201d column of the Stages table.<br \/>\nIf you generate a Project Personnel copy, the initial Project Personnel record has to keep the Project Id value of the last Project copy. This value will be assigned to the \u201cMaster Copy Id (auxiliary)\u201d column of the Project Personnel table.<\/p>\n<h2>7. Auxiliary Multi-Record buttons in Details tables<\/h2>\n<p>To copy the Stages records you should start from the \u201cCopy Stages (auxiliary)\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.3.aspx\">multi-record button<\/a>. Besides that you have to create this button with the URLParam(URL(),&#8221;p&#8221;) assignment and the <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.3.aspx\">New Record Create action<\/a> in the Stages table.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1589\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-12.png\" alt=\"Auxiliary Multi-Button 1\" width=\"961\" height=\"682\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-12.png 961w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-12-300x213.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-12-768x545.png 768w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/p>\n<p>The New Record Create action includes the following assignments:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1590\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-13.png\" alt=\"Assignments 1\" width=\"769\" height=\"524\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-13.png 769w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-13-300x204.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-13-768x523.png 768w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/a><\/p>\n<p>Please, remember that the Project column is a single reference column referring to the Project table.<br \/>\nWhen you created the auxiliary multi-record button in the Stages table, you can add the similar multi-record button to the Project Personnel table.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1591\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-14.png\" alt=\"Auxiliary Multi-Button 2\" width=\"884\" height=\"683\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-14.png 884w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-14-300x232.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Auxiliary-Multi-Record-button-14-768x593.png 768w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/a><\/p>\n<p>Moreover, in the button the New Record Create action includes the following assignments:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1592\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-15.png\" alt=\"Assignments 2\" width=\"869\" height=\"557\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-15.png 869w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-15-300x192.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Assignment-15-768x492.png 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/a><\/p>\n<p>Finally, all auxiliary elements are added. Now you should make some tweaks in the Projects table.<\/p>\n<h2>8. Custom buttons allowing to copy Details.<\/h2>\n<p>When a user clicks on the \u201cCopy Project Record\u201d button, the project copy is created. The initial Project value is specified in the \u201cProject Copy (auxiliary)\u201d reference column. Moreover, you can make this auxiliary column hidden on the form or in the default view.<br \/>\nWhen a user added the Project copy record, two buttons for Stages details and for Project Personnel details copy creation become accessible on the Project form.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1603\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png\" alt=\"Copy Details buttons\" width=\"955\" height=\"413\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png 955w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1-300x130.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1-768x332.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/a><br \/>\nThe following steps demonstrate how to create these buttons.<\/p>\n<h2>9. \u201cCopy Stages Details View\u201d custom button with Navigate action<\/h2>\n<p>To copy the Stages details records, you need the \u201cCopy Stages Details View\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.1.aspx\">custom button<\/a> on the project view form. Therefore you should create this button in the Projects table. Moreover, it can comprise the filters. Because of the filters the button will be displayed in the project copy, only if the initial project includes the related details.<br \/>\nYou can review the button settings on the following screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1594\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-17.png\" alt=\"Button with Navigate Action 1\" width=\"876\" height=\"660\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-17.png 876w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-17-300x226.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-17-768x579.png 768w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/a><\/p>\n<p>The <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.7.aspx\">Navigate action<\/a> settings:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1595\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18.png\" alt=\"Custom URL in Navigate 1\" width=\"1057\" height=\"462\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18.png 1057w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18-300x131.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18-768x336.png 768w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-18-1024x448.png 1024w\" sizes=\"auto, (max-width: 1057px) 100vw, 1057px\" \/><\/a><\/p>\n<p>The URL used in the action is the following:<br \/>\n&lt;%URLRoot()%&gt;\/multi.aspx?b=210529&amp;p=&lt;%=[Project Id]%&gt;&amp;ids=&lt;%=[Related Stages Ids lookup (auxiliary)]%&gt;&amp;ReturnUrl=&lt;%URLRoot() &amp; &#8220;\/preview.aspx?t=&#8221; &amp; TableId()&amp; &#8220;&amp;id=&#8221; &amp; RecordId() &amp; &#8220;&amp;back=&#8221; &amp; BackURL()%&gt;<\/p>\n<p>You can copy this URL, but you have to change these three elements:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>Element<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>210529<br \/>\nID number of the Multi-Record button<\/td>\n<td>ID number of the \u201cCopy Stages (auxiliary)\u201d multi-record button created in the Stages details table. This ID number is assigned by the system and can be copied from the button URL . Please note, that in your online database the button ID number will be different.<\/td>\n<\/tr>\n<tr>\n<td>[Project Id]<\/td>\n<td>The [Project Id] is a <a href=\"https:\/\/www.teamdesk.net\/help\/4.13.aspx\">key column<\/a> of the Project table (Master table). In your online database you should insert into the URL-formula the <a href=\"https:\/\/www.teamdesk.net\/help\/4.13.aspx\">key column<\/a> name of the master table you need.<\/td>\n<\/tr>\n<tr>\n<td>[Related Stages Ids lookup (auxiliary)]<\/td>\n<td>The creation of this lookup is described in paragraph \u201c5. Auxiliary Lookup columns\u201d of this article. Please, note that the name of the lookup created in your online database can be different.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>How to find and copy the ID number of the \u201cCopy Stages (auxiliary)\u201d multi-record button? Just do these steps:<br \/>\nFirstly, go to the Setup and select the Stages table. Secondly, choose Rules&gt;&gt;Custom Buttons. Finally, click on the button name:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1596\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-19.png\" alt=\"Button Name 1\" width=\"796\" height=\"313\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-19.png 796w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-19-300x118.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-19-768x302.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/p>\n<p>As a result, you can see the opened button form on the screen and the button URL in the address bar of a browser. You should copy the custom button ID number from the button URL:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1597\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-20.png\" alt=\"URL 1 in Browser \" width=\"980\" height=\"48\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-20.png 980w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-20-300x15.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-20-768x38.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/a><\/p>\n<p>When you added and saved the custom URL to the\u00a0 Navigate action, the \u201cCopy Stages Details View\u201d button is adjusted.<br \/>\nNow if a user clicks on the button, the Stages details copies will be generated under the project record form.<\/p>\n<h2>10. \u201cCopy Project Personnel Details View\u201d button with Navigate action<\/h2>\n<p>Also, you should make the similar adjustment to create the \u201cCopy Project Personnel Details View\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.1.aspx\">custom button<\/a>.<br \/>\nFirstly, create the button with filters and the <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.7.aspx\">Navigate action<\/a> in the Projects table:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1598\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-21.png\" alt=\"Button with Navigate 2\" width=\"840\" height=\"657\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-21.png 840w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-21-300x235.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-with-Navigate-21-768x601.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p>Secondly, adjust the Navigate action:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1599\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-22.png\" alt=\"Custom URL 2\" width=\"954\" height=\"452\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-22.png 954w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-22-300x142.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Custom-URL-22-768x364.png 768w\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" \/><\/a><\/p>\n<p>Finally, build the URL that should be inserted into the action:<br \/>\n&lt;%URLRoot()%&gt;\/multi.aspx?b=210532&amp;p=&lt;%=[Project Id]%&gt;&amp;ids=&lt;%=[Related Project Personnel Ids lookup (auxiliary)]%&gt;&amp;ReturnUrl=&lt;%URLRoot() &amp; &#8220;\/preview.aspx?t=&#8221; &amp; TableId()&amp; &#8220;&amp;id=&#8221; &amp; RecordId() &amp; &#8220;&amp;back=&#8221; &amp; BackURL()%&gt;<\/p>\n<p>You can copy this URL, but you have to change these three elements:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>Element<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>210532<br \/>\nID number of the Multi-Record button<\/td>\n<td>ID number of the \u201cCopy Project Personnel (auxiliary)\u201d multi-record button created in the Project Personnel details table. This ID number is assigned by the system and can be copied from the button URL . Please note, that in your online database the button ID number will be different.<\/td>\n<\/tr>\n<tr>\n<td>[Project Id]<\/td>\n<td>The [Project Id] is a <a href=\"https:\/\/www.teamdesk.net\/help\/4.13.aspx\">key column<\/a> of the Project table (Master table). In your online database you should insert into the URL-formula the key column name of the master table you need.<\/td>\n<\/tr>\n<tr>\n<td>[Related Project Personnel Ids lookup (auxiliary)]<\/td>\n<td>The creation of this lookup is described in paragraph \u201c5. Auxiliary Lookup columns\u201d of this article. Please, note that the name of the lookup created in your database can be different.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>How to find and copy the ID number of the \u201cCopy Project Personnel (auxiliary)\u201d multi-record button? It\u2019s simple, just do this steps:<br \/>\nFirst of all, go to the Setup and select the Project Personnel table. Then choose Rules&gt;&gt;Custom Buttons. After that click on the button name:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1600\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-23.png\" alt=\"Button Name 2\" width=\"958\" height=\"300\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-23.png 958w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-23-300x94.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Button-Name-23-768x241.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/a><\/p>\n<p>As a result, you can see the opened button form on the screen and the button URL in the address bar of a browser. You should copy the custom button ID number from the button URL:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1602\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-24.png\" alt=\"\" width=\"969\" height=\"50\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-24.png 969w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-24-300x15.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/URL-in-Browser-24-768x40.png 768w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/a><\/p>\n<p>Now if a user clicks on the button, the Project Personnel details copies will be generated under the project record form.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1603\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png\" alt=\"\" width=\"955\" height=\"413\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1.png 955w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1-300x130.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Details-button-16-1-768x332.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/a><\/p>\n<p>Please note, that you can remove all auxiliary columns and auxiliary buttons from the <a href=\"https:\/\/www.teamdesk.net\/help\/7.1.5.aspx\">data entry form<\/a> and can exclude them from the <a href=\"https:\/\/www.teamdesk.net\/help\/5.1.aspx\">Default View<\/a> or any other views.<br \/>\nWhen the above described adjustment is done, in your online database you can generate Project copies with two related details views.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to copy a master record with related details using a custom button with Navigate action.<\/p>\n","protected":false},"author":3,"featured_media":1624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[143,148,151,127,149,150,45],"class_list":["post-1571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tricks","tag-custom-button","tag-master-and-details","tag-master-details","tag-online-database","tag-record-copies","tag-record-copy","tag-relation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generate Copies of Master and Copy Master Details - TeamDesk Blog<\/title>\n<meta name=\"description\" content=\"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate Copies of Master and Copy Master Details - TeamDesk Blog\" \/>\n<meta property=\"og:description\" content=\"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/\" \/>\n<meta property=\"og:site_name\" content=\"TeamDesk Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-19T14:51:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-28T09:44:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png\" \/>\n\t<meta property=\"og:image:width\" content=\"794\" \/>\n\t<meta property=\"og:image:height\" content=\"374\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mila\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mila\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/\"},\"author\":{\"name\":\"Mila\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/63bd8646f2f4720f503116e38a190a6e\"},\"headline\":\"Generate Copies of Master and Copy Master Details\",\"datePublished\":\"2018-09-19T14:51:24+00:00\",\"dateModified\":\"2021-09-28T09:44:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/\"},\"wordCount\":1758,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Copy-Maste-Details.png\",\"keywords\":[\"custom button\",\"master and details\",\"master details\",\"online database\",\"record copies\",\"record copy\",\"relation\"],\"articleSection\":[\"Tips &amp; Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/\",\"name\":\"Generate Copies of Master and Copy Master Details - TeamDesk Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Copy-Maste-Details.png\",\"datePublished\":\"2018-09-19T14:51:24+00:00\",\"dateModified\":\"2021-09-28T09:44:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/63bd8646f2f4720f503116e38a190a6e\"},\"description\":\"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Copy-Maste-Details.png\",\"contentUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Copy-Maste-Details.png\",\"width\":794,\"height\":374,\"caption\":\"Copy Maste & Details\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-copies-of-master-and-copy-master-details\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate Copies of Master and Copy Master Details\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\",\"name\":\"TeamDesk Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/63bd8646f2f4720f503116e38a190a6e\",\"name\":\"Mila\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"caption\":\"Mila\"},\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/author\\\/mila\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate Copies of Master and Copy Master Details - TeamDesk Blog","description":"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/","og_locale":"en_US","og_type":"article","og_title":"Generate Copies of Master and Copy Master Details - TeamDesk Blog","og_description":"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.","og_url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/","og_site_name":"TeamDesk Blog","article_published_time":"2018-09-19T14:51:24+00:00","article_modified_time":"2021-09-28T09:44:07+00:00","og_image":[{"width":794,"height":374,"url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png","type":"image\/png"}],"author":"Mila","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mila","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#article","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/"},"author":{"name":"Mila","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/63bd8646f2f4720f503116e38a190a6e"},"headline":"Generate Copies of Master and Copy Master Details","datePublished":"2018-09-19T14:51:24+00:00","dateModified":"2021-09-28T09:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/"},"wordCount":1758,"commentCount":0,"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png","keywords":["custom button","master and details","master details","online database","record copies","record copy","relation"],"articleSection":["Tips &amp; Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/","url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/","name":"Generate Copies of Master and Copy Master Details - TeamDesk Blog","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#primaryimage"},"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png","datePublished":"2018-09-19T14:51:24+00:00","dateModified":"2021-09-28T09:44:07+00:00","author":{"@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/63bd8646f2f4720f503116e38a190a6e"},"description":"In relational database you may need to Copy a Master record and Copy Master Details (related details views). To simplify this process, the custom buttons with the Navigate actions can be adjusted. As a result, the master record duplicate can be created in the same table, after that using the buttons you can copy master details.","breadcrumb":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#primaryimage","url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png","contentUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2018\/09\/Copy-Maste-Details.png","width":794,"height":374,"caption":"Copy Maste & Details"},{"@type":"BreadcrumbList","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-copies-of-master-and-copy-master-details\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.teamdesk.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate Copies of Master and Copy Master Details"}]},{"@type":"WebSite","@id":"https:\/\/www.teamdesk.net\/blog\/#website","url":"https:\/\/www.teamdesk.net\/blog\/","name":"TeamDesk Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.teamdesk.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/63bd8646f2f4720f503116e38a190a6e","name":"Mila","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","caption":"Mila"},"url":"https:\/\/www.teamdesk.net\/blog\/author\/mila\/"}]}},"_links":{"self":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/comments?post=1571"}],"version-history":[{"count":27,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1571\/revisions"}],"predecessor-version":[{"id":2494,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1571\/revisions\/2494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media\/1624"}],"wp:attachment":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media?parent=1571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/categories?post=1571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/tags?post=1571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}