Copying Applications

Click here to access legacy documentation for this feature

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’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.

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.

Walkthrough

From your Application List screen, select the Menu option next to the application to copy and from the context menu, select “Copy Application”.

Figure 1: Copying an application from the Application Listing screen.

The following window, as shown in Figure 2, will appear:

Figure 2: The Copy Application screen

Copying Options

Pressing “Confirm and Copy” 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.

These options are described below in depth.

Application Name

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.

Tip: If this is a copy for testing or troubleshooting purposes, it is a good idea to append words such as ‘COPY’ or ‘TEST’ to the application name.

New Application Number

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’d like.

If that number is already in use by another application, m-Power will appropriately notify you once you try to copy the application:

Figure 3: Error thrown when the new app number is unavailable.

[APP] to Copy

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.

Copy to New Application Type? (Optional)

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.

The button will default to the current application type you’re copying. Using Figure 2 as a reference, a Retrieval application #1 is being copied, thus the button defaults to “Retrieval”. If this option is not changed, the retrieval will be copied to a new retrieval.

However if wanting to copy the retrieval application to a new report or maintainer, then select ‘Report’ or ‘Maintainer’.

Copy Existing HTML/XML

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.

This option is only presented if copying the application to its same application type. If copying the application to a different type, you will be required to compile fresh HTML and XML files after copying the application.

Copy to Another Dictionary? (Optional)

Defaults to the current data dictionary. If wanting to copy the application to another dictionary, select the appropriate option from this dropdown.

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.

Immediately after you select to copy this application to a new data dictionary, the page will change:

copy2
Figure 4: Copying an application to a different dictionary.

Notice in the Figure 4 the “New Application Number” 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.

Finalizing

Click “Confirm and Copy” to copy the application. Once pressed, you will be redirected to one of two places.

  • If the application was copied within the existing dictionary, you will be brought to immediately edit that application.
  • If the application was copied to another dictionary, 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.

In either case, the new application will not be ready to run until you build/compile the application.

Additionally, if the application was copied with the existing HTML/XML (Copy Existing HTML/XML set to ‘Yes’), then make sure when building the application to specify ‘No’ to overwriting the existing HTML presentation files:

Figure 5: Specifying “No” to overwriting the existing HTML in the new application.

Copying Application FROM Another Dictionary

The directions above focused on copying an application in your current dictionary. However let’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.

From your Manage Applications screen (The image above illustrates Manage Retrievals, though this feature works for any application type), click the “Copy From Another Dictionary”

Select the Dictionary you want to copy your application FROM.

Then choose the application you wish to copy.

Press “Confirm and copy” to finalize the copy after making any other necessary changes on the prompt.

Configuring the Copy From Another Dictionary Feature

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.

Scroll to the bottom and find the “Allow Copy From Another Dictionary” dropdown option:

Valid options include:

  • No — 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)
  • Yes — This developer can copy in applications from any dictionary assigned to them.
  • Yes – Restrict to single dictionary — 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.

Any changes made to user privileges will not go into effect until that user logs back into m-Power.

Updated on June 13, 2024

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support