Skip to Content mrc logo mrc logo
  • 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
  • What does m-Power build?
    Solutions by Industry
    Overview Database Front-Ends AI 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 & Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Development Services Training Mentoring
  • Overview Partners Press Releases Careers Events Contact Blog
  • Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • m-Power Administration
  • Global Application Properties
Back to Manual

Configuring Global Application Properties

As you may know, the majority of an application's behavior is controlled via the Application Properties file, found within each specific application. This design, while giving developers maximum control and flexibility, can sometimes frustrate developers who would like to globally control some of these properties across all of their m-Power applications. For instance:

  • You would like all of your applications to default to display 20 rows, instead of the default (10 rows).
  • You would like all of your filtering to be case insensitive, rather than the default (case sensitive).
  • You would like to default the redirection page of a report sent via email to a specific page, rather than the default (mrc's website).
  • You dislike the m-Power default graphing colors and would like to default to your corporate color palette

Developers who are interested in adding this type functionality can now do so at the Data Dictionary level. To illustrate, lets walk-through changing the case-sensitivity property to make all applications be case-insensitive by default.

Step 1 — Finding the attribute to set globally

To start, we first need to copy the code we will use to reset the default property. First, open m-Painter for any application. Navigate to File -> "Open File." Click the "Show All Files" button, then click the I00010p.xml (where I00010 is your application #) file located under "Other Files". Lastly, press OK.

This will open up an XML output. Search through the document for the setting you wish to use for your Global Property. In our case, it is the case sensitivity option.

Copy the entire xml element (including the start and the end tag). This will be used for Step 2.
Note: If you are having trouble finding the tag, please note that they are organized by what tab they are located under in the graphical interface. In the screen shot above, you can see this element was found under the "SQL Statement" tab.

Step 2 — Loading the attribute

Next, navigate to the Admin section. Next click "Edit Dictionary Files", then "Dictionary Configuration." Click "Text Mode". Search for the string "<Default_Properties".
Note: If this code does not exist in your file, you can add it via copying and pasting the following directly before the "</mpower-config>" tag.

<Default_Properties tabDescription="Default Properties">
</Default_Properties>

Directly after the "<Default_Properties…" tag, paste the code from Step 1. Be sure to click "Save".

Step 3 — Configuring the attribute

Back in the "Edit Dictionary Files" screen, click "Dictionary Configuration" once more. Navigate to the "Default Properties" tab.

Here you will see the new element that you added in Step 2. Now that you've loaded it, you can customize the value through the on-screen editor. Notice that I've already changed my caseSensitive property to be case-insensitive. Be sure the Press Accept.

By setting the above, all future applications will be case-insensitive. No existing applications will be modified. In addition, the architecture of this feature allows me the freedom to later decide to make some applications case-sensitive by modifying the property at the individual application level.

Frequently Asked Questions

Question: Why do I have to load the property myself?
Answer: m-Power supports hundreds of application properties — as such, it would not be practical to pre-load every one of these for you, as most users would get lost trying to search for their specific property.

Question: How can I control which templates these global properties will be applied to?
Answer: The global application properties will be applied to all applications, no matter the template selected.

Question: I've set up a fair amount of work for my global properties in Dictionary A, but now I've made Dictionary B and now they are not there. How can I easily copy these over?
Answer: The underlying changes were made to the file mpower-config-DICTIONARY.xml in /m-power/proddata/conf (where DICTIONARY is your Data Dictionary's name). Simply copy the entire "<Default_Properties>" section and paste it into your new Dictionary's configuration file.

Created: February 12, 2014 | 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

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

See all tags »

mrc

Build the custom apps and AI tools your business needs with m-Power, or have our Chicago-based team build them with you. One platform, one team that makes sure you succeed.

Since 1981 · 1,500+ customers · 4.7/5 on G2

m-Power
Overview Demos Build Process Licensing Specs Get a Demo
Solutions
Database Front-Ends Reporting AI Tools Dashboards ERP Enhancements Modernization See all solutions
Company
Case Studies Services About Blog Careers Contact Support

Privacy Policy Cookie Policy Cookie Settings

michaels, ross & cole, ltd. (mrc)
US: 2001 Midwest Road, Suite 310, Oak Brook, IL 60523 · 630-916-0662
UK: Mortlake Business Centre, 20 Mortlake High Street, London, SW14 8JN · +44-20-335-59566
© mrc. All rights reserved.