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
  • Deprecated Documentation
  • Working with Stylesheets
Back to Manual

Stylesheets within m-Power Applications

 

m-Power templates utilize embedded on-the-fly-from-a-single-source stylesheets. The main benefit of this is that all style information is contained within the document. That means no matter if your servlet is run off of your application server, sent via email, or downloaded as an Excel File and stored on your PC it will always have the same look and feel. The "classic" templates were unable to have this portability functionality and, as such, downloaded and emailed pages looked drastically different than pages run directly from the application server.

If you open up an application through m-Painter, you will notice the stylesheet information is directly listed on the page. Although it is listed, that information does not get saved to the page and is actually retrieved at run time (It is only listed so m-Painter can mimic what you will see at run time).

However, if you wish to manually include a different look, you can include the styles directly within the servlet through m-Painter.

The extra portability, along with the same runtime functionality, make the new m-Power stylesheets a Win-Win for you as a developer.

But I really want to use my old system? Is this possible?

Of course. However, this method is not encouraged by mrc as you lose all of the portability functionality. Simply edit the file "mrc_servlet_stylesheet_css.html" within your Data Dictionary directory. You will notice many lines of stylesheet information. After making a proper back up, delete all of the text in the file. In its place, enter this information:

</style>

<LINK REL="stylesheet" TYPE="text/ css " HREF="/mrcjava/ mrcclasses/nameofstylesheet.css ">

<style type="text/ css ">

Replacing nameofstylesheet.css with the name of the stylesheet you wish to use.

Of course, it bears repeating, with the method described in this section you lose all of the above listed benefits of including the CSS directly into the source of your servlet.

Created: February 29, 2008 | Modified: October 25, 2013

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

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

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.