Make Your First Application
When beginning a new application, mrc recommends that you plan out all of the screens before even creating your first screen. This provides a general overview for the entire project.
When it comes to making the application, it is important to consider just one screen at a time. It might be necessary to create several smaller applications and combine them into one screen using the m-Power Import feature or other techniques. If so, then it is better to consider each one of those pieces as an individual application at first. Then, build those pieces separately and combine them at the end. For the beginner m-Power user, let's assume that one application equals one screen.
New m-Power users find it helpful to fill out an m-Power Application Design Sheet before actually jumping into the m-Power interface. Please print that page from the next section before continuing.
m-Power Programming Steps:
- With m-Power, design is the most important aspect of the project, not coding.
- Design your application, preferably by drawing it on paper using sample data. Please see the following section m-Power Application Design Sheet.
- Plan to use a specific m-Power application type and template. Please see a following section Selecting an Application Type and Template for more information.
- Plan the Application Specifications:
- Create an application title.
- List the needed tables, noting how they are joined and choosing the primary table.
- List the needed fields.
- List the fields that will determine the order of listed application data.
- List any record selections.
- List any work fields to derive from data, system values, or logic.
- List any needed calls to external business logic.
- List any links to separate screens.
- Enter Application Specifications
- A strong design usually equates to building your application quickly.
- Use the m-Power interface to enter the application details, using the notes you crafted in the Design step.
- Log onto m-Power at the URL provided in the installation. Point your browser to (where x.x.x.x is the IP address of the server running m-Power and Tomcat.)
- Begin by selecting the application type and template from your Design step.
- Next, select the primary table and choose the needed fields. Join to secondary tables and select fields as needed.
- Use the m-Power navigation bar to move within the application specification. Continue to the Application Options screen to view all of the available options for an application.
- Add the required Sequence Key Fields.
- Lastly, define any optional specifications like Record Selection, Calculations, External Object calls, and SmartLinks.
- m-Power makes this step really simple!
- Use the Build operation from the Application Options menu to compile the application.
- In a conventional programming approach, this is where you would need to write many lines of code and spend a lot of time dealing with compile errors. m-Power reduces all of this effort to the click of a button, virtually eliminating all compile and run-time errors.
- Included WYSIWYG editor m-Painter makes this step easy and fun!
- The application is generated with a default layout and functionality based on the template, but the layout and features are fully customizable.
- m-Power includes m-Painter allowing modification of the HTML presentation layer without needing to touch the code.
- Also use m-Painter to edit the set of default Application Properties that control much of the functionality per application.
- The header, footer, and style sheet control the overall look and feel of m-Power-generated applications. Consider replacing the default colors and images with your own to match other Web applications already in use or your organization's Website. Those options are available in the Data Dictionary tab named Edit Data Dictionary Files.
- m-Power dramatically reduces testing efforts.
- M-Power testing is different than conventional testing because there are virtually no compile errors or run-time errors.
- Instead, your testing should verify that the generated application match your original design in terms of data results and features.
Click here to access an m-Power application design sheet.