mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • m-Painter
  • Copy an Application (including m-Painter changes)
Back to Manual

Copy an Application (including m-Painter changes)

 

The m-Power web interface includes a very useful tool that allows you to copy an application. You have a variety of copying choices:

  • Copy an Application of any type to the Same Data Dictionary
  • Copy an Application of any type to another Data Dictionary
  • Promote a Retrieval to a Report

However, in each of the three cases listed above, the copy function will only copy application specifications. That includes aspects such as:

  • Table/Field Selection
  • Sequencing
  • Calculations
  • Changes made in Field Settings
  • Template Type

All changes made via the Web Interface will be copied over, however no changes in m-Painter will be copied over. The system is designed like this intentionally as no generated objects (Java, XML, Class, and HTML files) are included in the copy process. This document will explain how to manually copy your custom painting to your copied application.

In this example, we have an Inquiry that we created and have painted extensively, Inquiry 120. I would like to make a copy of it to Inquiry 130 that will have the same painting.

Copy Inquiry 120 to Inquiry 130 via the Web Interface:

Build application 130. As of right now, I00130 does not contain any custom painting.

Next, lets go back into m-Painter for the original Inquiry, 120. From here, click "Source" to view the source.

Press CTRL+A to select all the text, and CTRL+C to copy all of the Source code on your Clipboard (if you are copying a Report or Work-with Maintainer, please keep in mind that there are two screens for each template that will need to be copied).

Close Painter for Inquiry 120 and next open Painter for Inquiry 130. Click "Source" to view the source.

Press CTRL+A to select all text, and press the Delete key. You should now see a blank screen. Press CTRL+V to paste all of the source from I00120 to I00130.

The final step is to change all references of 120 to 130 in the HTML source code. While we could manually examine the document for each one, the "Search" command is much better suited. In the m-Painter toolbar, look for the binoculars:

Calendar servlet 4.bmp

Clicking the above "Search" button will bring up the following pop-up window:

Place the original application number in the "Find what" box. Place the new application number in the "Replace with" box. It is recommended to search for the entire 5 string application number to minimize the chance of finding a false positive. Press "Replace All".

Note: There will not be a confirmation pop-up. Simply, the application will replace all matching data. Click "Cancel" to close the pop-up box, and click the "Save and Deploy" button to commit your changes to hard disk. Congratulations, you should now have two duplicate applications!

Note: You will also need to copy over any changes made in the .XML file. While you can employ a similar strategy to copy over the Properties file, it is usually quicker to change those attributes manually as there are only a few that are changed (such as Advanced Search, Advanced Sort, Max_Rows, AJAX , etc…).

Created: July 29, 2008 | Modified: June 12, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Getting Started Compiling Video Prompt Screens Email Report Freemarker Dates DB2 Administration Security App Properties m-Painter Database Bootstrap Templates Retrieval Record Selections Summaries Maintainer Popular Form Validation Maintainers Reports Java Advanced SQL Graphs Build Process Application Properties Parameters Graph Properties Calculations Excel Performance Graphing Dropdowns RPG Bar Graphs External Objects Data Dictionary Production Tomcat Retrievals Admin mrc-Productivity Series

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.