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
  • Import Panel
Back to Manual

 

Import Panel

Click here to view current documentation for this feature.

mrc is proud to announce the latest m-Painter enhancement: An Improved Painter Importing Panel. Now calling multiple applications (creating dashboards) on one page is easier than ever. Some of the recent improvements include:

  • Preview — You can now see a preview of what you are importing, directly via m-Painter.
  • Auto-Parameters — When you select an application to import, m-Painter will automatically map all common fields (including synonyms).
  • Choose Output — Developers can now choose what portion of the output they want to import. Valid options: Full page, table only, custom, and graph.
  • Edit — Developers can now edit their imported applications directly within m-Painter, saving time when customizing their application.

To access the Import Panel, click the "Insert Import" button from your m-Painter Toolbar.

Next, select the type of application you wish to import. Once you select Retrieval, Report, or Maintenance, the next dropdown (Import Application) will become available and you can then select a list of pre-built applications for that type. Once you select the application, a preview of that application will render.

Only the first set of record(s) will be returned in the preview mode, so do not be alarmed if the exact data that you are expecting does not load. Pay close attention to the URL block to ensure that the Import Panel has inserted the correct URL, and mapped the correct Parameters.

The next value you see is the "Import Options" drop-down list. This option allows you to control what type of content you want returned. For instance, if you have chosen a Report with Graph template, you can choose "Graph Only". This will cause only the graph to be imported. Similarly, you can choose "Table Only", causing only the table to be imported. Please keep in mind that this functionality works only for applications generated with the September 28th, 2010 m-Power update (or later). Additionally, the "Custom" option is for advanced users and is further discussed in the "Notes" section at the end of the document.

Now that you have imported your application, you have the option to add additional parameters, if necessary. This process is the same as adding Additional Parameters via URL Linking. More information about Additional Parameters can be found in the m-Painter manual.

As an m-Power developer, you also have the option to edit your imported application, directly from the Import Panel. Doing so allows you to quickly and easily modify your application without having to switch between the interface and m-Painter. To access this feature, click the "Edit" button located on the Import Panel.

You'll notice that this application will open within a brand new m-Painter window. Once you have completed your changes, save as normal before closing this new m-Painter Window. Failing do this will cause your changes to be lost.

Once you click the "OK" button, your Import Panel will close and you will find an "@import" substitution within your application. The location of this substitution ultimately controls the placement of your import. Please feel free to drag and drop this substitution into the location of your choosing.

Additional Notes

    • To determine the auto-parameters, m-Painter examines the application that is being imported, analyzes all of the fields it is being sequenced on, then passes any eligible fields to those keys. If Parameters are missing, please ensure that you have created the necessary Synonyms.
    • Non-compiled applications will not appear in the "Import Application" drop-down list. Please compile them before attempting to Import.
    • If you wish to Import an application from a different Data Dictionary, please type the URL manually in the URL input box.
    • Pivot Table Applications are unavailable to be imported. In fact, you will not see any Pivot Table applications within your "Import Application" drop-down list. If, however, you wish to create a Dashboard that includes a Pivot Template, please consider using your Pivot Table Application as your "Primary" application. This will allow you to then import all of your secondary applications off of the Pivot Table.
    • If you wish to import an Interactive Report Template, it must be imported into another Interactive Report Template to function correctly.
    • If you have implemented Sign-on Security, you may notice a Sign-on screen within the preview mode of your Import Panel. Simply sign-on to see your application.

  • Choosing the "Custom" option from the Import Options drop-down list allows you to control exactly what type of content is returned from your imported application. Within your Imported application, open the source view and add <!-- Begin Import --> before any content you wish to have included and add <!-- End Import --> at the end of the content. Be sure that there is a space before Begin/End & a space after the word Import for this functionality to work correctly.
  • If you desire, your application can support multiple Custom Imports. On your imported application you can add <!-- Begin Import 2 -->, <!-- Begin Import 3 -->, etc… to denote multiple importing sections. You should always end an Import with the tag with the appropriate matching number <!-- End Import 2-->, <!-- End Import 3-->,etc....
  • To then reference these additional imported statements, simply choose the "Custom Import" option from your "Import Options" drop-down list within your parent application. Next, modify the "&impTags=1" within the URL. Specifically, change the "1" to match the number found within the applicable "Begin Import X" syntax. For instance, if I wanted to reference a value found in my <!-- Begin Import 4 -->XYZ<!-- End Import 4 --> I would code my Import URL to contain the text &impTags=4.
  • Choosing the "Table Only" option from the Import Options drop-down list removes all elements from your imported application except for the table by using the data=1 parameter in the URL. Therefore, if you had an import application with a graph, title, table etc., all elements would be removed besides the the table. The parameter accomplishes this by only using the code between the <!-- Begin data table --><!-- End data table --> tags in the source code of the imported application.

 

Created: September 21, 2010 | Modified: November 22, 2023

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

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

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.