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
  • Maintainers
  • Parent/Child Applications
Back to Manual

Parent/Child Applications

Creating applications that support Parent/Child architecture (also known as Header/Detail) is a common task for m-Power developers. This feature aims to greatly simplify the development/customization effort of creating these types of applications. A few examples of Parent/Child applications include:

  • -Order Entry, where Billing/Shipping is stored in the parent, and order lines are in the details.
  • -Expense Forms, where employee information is stored in the parent, and expense lines are in the details.
  • -Enrollment Applications, where user information is stored in the parent, and all of their selected courses are stored in the details.

In short, any application that would require you to have a one to many relationship would be a great candidate for this Parent/Child feature.

Creating your Maintenance applications using the Display & Maintain template using the Parent/Child feature, enables numerous features, including:

  • -Automatic linking of application at run-time. Each parent record will include a link that allows users to view the Child information belonging to the Parent.
  • -The Child review screen will include a link to return to the Parent.
  • -Inclusion of Parent information on Child screens
  • -Auto-delete of Child records when Parent is deleted
  • -Auto-copy of Child records when Parent is copied
  • -Auto-Redirect to add new Child immediately upon creating Header

Video Documentation

Implementing this Feature

  1. Create Parent Application — Create your Parent Application over the necessary tables using the Display and Maintain template. Prior to compiling, navigate to the "Application Settings" section. At the bottom, be sure to set the "Parent/Child Options" value to "Parent Application."
  2. Create Child Application — Create your Child level Application over the necessary tables using the Display and Maintain template. Prior to compiling, navigate to the "Application Settings" section. At the bottom, be sure to set the "Parent/Child Options" value to "Child Application."
  3. Edit Parent Application — Return to the "Build and Customize" screen of your Parent application. Click on the "Link to Child" icon. This is what will bind the two applications together, passing the necessary fields.
    Note: Button missing? Be sure you've specified the application as a Parent Application in step 1 above.
  4. Select Child — Use the drilldown to select the necessary child.
    Note: Child Application missing? Be sure you've specified the necessary application as a Child Application in step 2 above.
  5. Configure Parameters — Use the interface to select the field(s) from the Parent and Child applications that should be linked. For example, if the Parent and Child record utilize Order # as the common link between them, choose both (see image). However, if your case required more than one field (such as Company #), feel free to add as many fields as necessary.

Screenshots of this Feature at Run-Time

  • The Parent Application contains a new button that allows users to see Child records that pertain to the user
  • The Child Application contains Parent information above the Child records as well as a button that allows users to return to the Parent screen

Configuring this Feature

There are three configurable options that are included with this feature, all accessible via the Application Properties of the Parent application, under the "Parent" tab.

  • Auto Redirect On Add — Redirect to Child by default — When 'Redirect to Child' is set, the application will automatically redirect the user to add a Child record after they have added a new Parent Record. However, if "Normal Redirect" is set, when a Parent record is added, the application will simply return back to the Parent maintainer.
  • Auto Copy Child Records — Off by default — When enabled, in the event that a parent record is copied, all associated child records will also be copied
  • Auto Delete Child Records — On by default — will delete all child record associated with the parent when the parent is deleted.

Created: November 30, 2015 | 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

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

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.