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?
    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 & 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
  • Build Process
  • SmartLinks
Back to Manual

SmartLinks

Click here to view current documentation about this feature.

SmartLinks allow you to easily link one application (Retrieval, Report, or Maintenance) to any other application, passing key data automatically. The benefits of this are many, including:

  • You can create applications that allow users to drill from an order header table to order details records.
  • View a list of products and maintain records based on the value you selected.
  • Useful when making Dashboard Applications.

To create a SmartLink application, you will need (at least) two applications: The calling application and the receiving application. While it may seem backwards, you should always create the receiving application first, then create the calling application last.

  1. When your SmartLink calls the receiving application, it will examine what fields the receiving application is sequenced by. Only fields that are sequenced keys in the receiving application will be passed.
  2. Be sure to include Sequence keys that exist in both applications. If they have different names, be sure to set up a Synonym.
  3. If no matching fields can be found, no values will be passed along with your Smartlink.
  4. Compile your application, and make note of the application type and application number as we will use this information in our next step.

Next, let's build the calling application.

  1. Create or select an application that has one or more fields that match the sequence keys of the receiving application. The fields in the calling application do not need to be sequence keys, they simply need to exist.
  2. Click the SmartLinks button within Application Options, and click either Retrieval, Report, or Maintenance (this depends on the type of application you built in Step 1).
  3. Use the navigation options to find the application you made in Step 1. Click the green "Add" icon.
  4. Recompile your application and overwrite the HTML.

At runtime, your calling application will contain a link in the right-most column of your table (bottom-most if it is a Single Record template). Clicking on it will pass all of the values of the sequence keys of the receiving application where they existed in the calling application.

Note: You can use m-Painter to remove the generated link and replace it with a link on any value. Please consider this option by using the "Insert/Edit Link" button.

Smartlinking in m-Painter

Selecting your Smartlink application from the 'Smartlinks' drop down will automatically build out the Smartlink URL for you. As a note, this slnk=1 parameter tells my retrieval that this page is a SmartLink. This means that the page will only show records that equal the value(s) you pass to it. Without specifying slnk=1, the page assumes a greater than or equal to (GE) relationship.

Real World Application

You wish to see Sales History Data in a Multiple-Record Retrieval. The problem is that the file contains millions of records and you know that you only ever want to see data for one particular customer at a time. You decide that you want to first show users a screen with all current customers. From here, the user should click on a customer, then they will be taken to all the Sales History data for that customer only.

  1. Build your Sales History Retrieval. You must sequence by the Customer Number. The reason you must do this is because m-Power will only pass data from key fields to an application. Build the retrieval.
  2. Next, build your Customer look-up retrival over your Customer Master table. Here the sequence key does not matter because this is the calling application. Simply be sure that the customer number has been included in this application.
  3. Add a SmartLink from the customer look-up to the Sales History application. m-Power will automatically know to pass the Customer # because that field is the key field in the receiving application. Compile the look-up.

Created: April 1, 2010 | Modified: November 10, 2023

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

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

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


© mrc. All rights reserved.