{"id":7713,"date":"2014-07-09T11:31:28","date_gmt":"2014-07-09T16:31:28","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/docs\/?page_id=7713"},"modified":"2024-06-13T16:02:36","modified_gmt":"2024-06-13T21:02:36","slug":"copying-applications","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/copying-applications","title":{"rendered":"Copying Applications"},"content":{"rendered":"\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><em>Click <a href=\"https:\/\/www.mrc-productivity.com\/legacy\/general\/copying-applications\">here<\/a> to access legacy documentation for this feature<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>m-Power allows copying applications to enable faster application development. For instance, users can copy an application to a completely different data dictionary or a different application type. <\/p>\n\n\n\n<p>m-Power&#8217;s copying feature also permits copying the HTML (m-Painter) and XML (Application Properties) files associated with a certain application, when copying to the same application type. Ultimately, this means that a developer can build one application and have it deployed to countless other data dictionaries in minutes rather than hours.<\/p>\n\n\n\n<p>Copying applications is also a useful feature when troubleshooting an existing application or when wanting to test experimental changes in another version of your existing application. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dictionary\">Walkthrough<\/h2>\n\n\n\n<p>From your Application List screen, select the Menu option next to the application to copy and from the context menu, select &#8220;Copy Application&#8221;. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/vue-images\/copyapps1.jpg\"><img decoding=\"async\" src=\"\/docs\/vue-images\/copyapps1.jpg\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 1: Copying an application from the Application Listing screen.<\/figcaption><\/figure>\n\n\n\n<p>The following window, as shown in Figure 2, will appear:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/docs\/vue-images\/copy2.png\"><img decoding=\"async\" src=\"\/docs\/vue-images\/copy.png\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 2: The Copy Application screen<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Copying Options<\/h3>\n\n\n\n<p>Pressing &#8220;Confirm and Copy&#8221; in Figure 2 will immediately copy this application to a new application. However the various options presented on this screen should be heeded, as they offer a few different options available to you prior to making your new copy. <\/p>\n\n\n\n<p>These options are described below in depth.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Application Name<\/strong><\/h4>\n\n\n\n<p>The new name that will be given to your application. This defaults to the name of the application being copied, however you will likely want to change this appropriately.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">Tip: If this is a copy for testing or troubleshooting purposes, it is a good idea to append words such as &#8216;COPY&#8217; or &#8216;TEST&#8217; to the application name.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">New Application Number<\/h4>\n\n\n\n<p>The new number that will be given to your application. By default this will always be the highest application number currently used plus ten. However, this may be changed to whatever available number you&#8217;d like. <\/p>\n\n\n\n<p>If that number is already in use by another application, m-Power will appropriately notify you once you try to copy the application:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/docs\/vue-images\/copy3.png\"><img decoding=\"async\" src=\"\/docs\/vue-images\/copy3.png\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 3: Error thrown when the new app number is unavailable.<\/figcaption><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>[APP] to Copy<\/strong><\/h4>\n\n\n\n<p>Displays the number of the current application being copied. The label above this box will show as RETRIEVAL, REPORT, SUMMARY, or MAINTAINER, depending on the application that is being copied.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Copy to New Application Type? (Optional)<\/strong><\/h4>\n\n\n\n<p>When copying a Retrieval, Report, or Maintainer, this option will appear. It will allow you to optionally copy the current application to a different application type. <\/p>\n\n\n\n<p>The button will default to the current application type you&#8217;re copying. Using Figure 2 as a reference, a Retrieval application #1 is being copied, thus the button defaults to &#8220;Retrieval&#8221;. If this option is not changed, the retrieval will be copied to a new retrieval. <\/p>\n\n\n\n<p>However if wanting to copy the retrieval application to a new report or maintainer, then select &#8216;Report&#8217; or &#8216;Maintainer&#8217;.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Copy Existing HTML\/XML<\/strong><\/h4>\n\n\n\n<p>Defaults to No. If Yes is selected, this option will copy your existing m-Painter (HTML), Application Properties (XML), and Workflow Designer content (if a maintainer) to the new application. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>This option is only presented if copying the application to its same application type<\/strong>. If copying the application to a different type, you will be required to compile fresh HTML and XML files after copying the application.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Copy to Another Dictionary? (Optional)<\/strong><\/h4>\n\n\n\n<p>Defaults to the current data dictionary. If wanting to copy the application to another dictionary, select the appropriate option from this dropdown. <\/p>\n\n\n\n<p>You will only be allowed to copy an application to a data dictionary to which you are assigned. You can also select to copy the Existing HTML\/XML files when copying to another data dictionary.<\/p>\n\n\n\n<p>Immediately after you select to copy this application to a new data dictionary, the page will change:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.mrc-productivity.com\/docs\/vue-images\/copy2.png\"><img decoding=\"async\" src=\"https:\/\/www.mrc-productivity.com\/docs\/vue-images\/copy2.png\" alt=\"copy2\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 4: Copying an application to a different dictionary.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Notice in the Figure 4  the &#8220;New Application Number&#8221; is 1, the same as the original application. When copying an application to a different dictionary, m-Power will assume the application number for the new application will be the same as the current application being copied. It is not required to keep the numbers the same, and this may be changed to any available number within that data dictionary. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Finalizing<\/h3>\n\n\n\n<p>Click &#8220;Confirm and Copy&#8221; to copy the application. Once pressed, you will be redirected to one of two places.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>If the application was copied within the existing dictionary,<\/strong> you will be brought to immediately edit that application. <\/li>\n\n\n\n<li><strong>If the application was copied to another dictionary, <\/strong>you will be brought back to the Application Listing of the current dictionary. Therefore if you wish to work on the newly copied application, you will need to switch your data dictionary.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">In either case, the new application will not be ready to run until you build\/compile the application.<\/p>\n\n\n\n<p>Additionally, if the application was copied with the existing HTML\/XML (Copy Existing HTML\/XML set to &#8216;Yes&#8217;), then make sure when building the application to specify &#8216;No&#8217; to overwriting the existing HTML presentation files:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/copy4.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Figure 5: Specifying &#8220;No&#8221; to overwriting the existing HTML in the new application. <\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Copying Application FROM Another Dictionary<\/h2>\n\n\n\n<p>The directions above focused on copying an application in your current dictionary. However let&#8217;s suppose you are working in a separate dictionary and know you want to copy in an application from that dictionary instead. Sure, you could switch to that dictionary, then follow the steps above. However, this approach will cover how to copy in an application from a different dictionary into your current dictionary.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/copy1new.jpg\"\/><\/figure>\n\n\n\n<p>From your Manage Applications screen (The image above illustrates Manage Retrievals, though this feature works for any application type), click the &#8220;Copy From Another Dictionary&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/copy2new.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Select the Dictionary you want to copy your application FROM.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/copy3new.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Then choose the application you wish to copy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/copy4new.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Press &#8220;Confirm and copy&#8221; to finalize the copy after making any other necessary changes on the prompt.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring the Copy From Another Dictionary Feature<\/h3>\n\n\n\n<p>There might be scenarios where you do not want developers to copy in applications from other dictionaries. To turn this feature off, access Admin -> Developers -> then click the edit button for the necessary developer.<\/p>\n\n\n\n<p>Scroll to the bottom and find the &#8220;Allow Copy From Another Dictionary&#8221; dropdown option:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/images\/copy5new.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Valid options include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>No <\/strong>&#8212; This developer cannot copy in applications from other dictionaries via the feature covered in this section. They could still, if they were assigned to multiple dictionaries copy them the traditional way (explained at the top of this document)<\/li>\n\n\n\n<li><strong>Yes <\/strong>&#8212; This developer can copy in applications from any dictionary assigned to them.<\/li>\n\n\n\n<li><strong>Yes &#8211; Restrict to single dictionary<\/strong> &#8212; As the name suggested, if this option is selected, a developer would only be able to copy in applications from this dictionary, even if they were not assigned to it.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">Any changes made to user privileges will not go into effect until that user logs back into m-Power.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview m-Power allows copying applications to enable faster application development. For instance, users can copy an application to a completely different data dictionary or a different application type. m-Power&#8217;s copying feature also permits copying the HTML (m-Painter) and XML (Application Properties) files associated with a certain application, when copying to&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[266],"ht-kb-tag":[],"class_list":["post-7713","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-general"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/7713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/comments?post=7713"}],"version-history":[{"count":36,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/7713\/revisions"}],"predecessor-version":[{"id":14127,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/7713\/revisions\/14127"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=7713"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=7713"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=7713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}