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 Data Exploration Reporting Business Intelligence Dashboards Mobile Apps ERP Enhancements Modernization Spreadsheets to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Database Front-Ends
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Overview Training Project Consulting Staff Consulting 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

 

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 (14)
Starting with m-Power (8)
Retrievals (10)
Reports (14)
Summaries (4)
Maintainers (18)
Graphs (8)
m-Power Data Explorer (4)
General (21)
Calculations (5)
Utilities (8)
m-Power Administration (20)
Security (11)
Freemarker (6)
m-Painter (27)
Form Validation (5)
External Objects & UDFs (11)
Deprecated Documentation (33)
Bootstrap Templates (7)

Popular Tags

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

See all tags »

michaels, ross & cole, ltd. (mrc)
Privacy Settings Privacy Policy Cookie Policy Employee Intranet
© 2018 mrc. All rights reserved.
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