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
  • Use “Page Name” to show different outputs for one application
Back to Manual

Use "Page Name" to show different outputs for one application

Click here to access current documentation for this feature.

Perhaps one of the greatest, little known features of m-Power is the use of the Pagename function. The Pagename function allows you to create any number of output pages, then be able to specify which output is displayed to the user.

This could be used for a variety of different reasons, including:

  1. You wish to have one report that sometimes will display some columns, while displaying a set of different columns another time
  2. You wish to have a retrieval or report look differently, or have different options available to the end user
  3. You wish to utilize the same data but be able to fully control/customize the HTML output

This example assumes you wish to utilize Pagename for a Report. I have built a basic report and have compiled it. Now, I will enter m-Painter.

For Pagename to work, we must save the presentation layer with a new name. The easiest way to copy this file is through m-Painter itself.

On the m-Painter toolbar, hover over the File Menu and select "Save As".

A window will open that will let you rename the current presentation layer:

Pick a new name for your output file and then click OK.

The current presentation layer will be renamed and then the current m-Painter window will reload with this new file for immediate editing.

On the m-Painter Toolbar, hover over the File menu and select "Open File" to navigate back to the original page or to any other renamed page.

Note: All renamed layers will show up under "Custom Files", as indicated in the screenshot below:

Now you can edit each page to your liking.

Note: Be sure to click "Save" prior to navigating to any other page or your changes will be lost.

Now that you have edited your application outputs individually, we can complete the final step of calling the appropriate application.

Running the Report through the Prompt page will result in the default output being run. However, if you are calling this Report via a URL, there is an additional parameter to pass which allows you to control which Pagename is used.

For Reports, specify "rptPage" equal to the name of your output page.

In my case, my link might look something like this:

MRCWORKLIB.R00004s?run=2rptPage=R00004two.html

Note: For other applications, the syntax is slightly different. Rather than "rptPage", the parameter is called "pageName".

Learn more about passing parameters via Reports here.

Created: May 1, 2008 | Modified: August 18, 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

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

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.