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
  • Maintenance Redirection
Back to Manual

Redirecting from a Maintainer

Occasionally you may want to redirect to another page after a user has performed an action within a Maintenance application (such as Update, Delete, or Add). One of the most common uses of the redirect is after a user fills out a form. Once they have completed and press the "Accept" button, developers desire to automatically redirect them to a confirmation page.

This is easily done from the Application Properties screen. From the Application Menu, access the Application Properties, then click the After Actions tab. Here you will find four properties related to redirecting:

add_redir: This will be the URL to redirect to after adding a new record successfully.
upd_redir: This will be the URL to redirect to after updating a record successfully.
dlt_redir: This will be the URL to redirect to after deleting a record successfully.
all_redir: This will be the URL to redirect to after any of the actions have been completed successfully (Add, Update, or Delete).

In any of the above cases, Use ${FIELD} substitutions to insert submitted form values into the URL where FIELD is the field name.

Example of redirecting to a Retrieval, the process to redirect to other applications is the same:

Here is an example link to redirect to Retrieval I00200 passing the field MY_FIELD as parameter:

  DDATA.I00200s?slnk=1&MY_FIELD=${MY_FIELD}

Let's break down this link:

DDATA = Data Dictionary name
I00200s = Application name
slnk=1 = This parameter tells your retrieval that this page is a SmartLink (link to:). 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.
MY_FIELD = The field name on the redirecting application.
${MY_FIELD} = The field name being passed from the maintainer to the redirecting application. The ${ } is Freemarker syntax for a variable, the field name inside the brackets will be replaced for the actual value of that field at run time.

Here is the Application Properties for the Maintainer with the all_redir link setup:

MaintainerRedir

Here is the Maintainer at run time right before clicking Accept:

MaintainerRedir

Here is the Retrieval at run time where I was redirected after clicking Accept on the Maintainer:

MaintainerRedir

Earlier, we included MY_FIELD=${MY_FIELD} in the Properties for the redirect in the Maintainer, but if you look closely at the URL in the Retrieval in the above image, you will see that the substitution inside the brackets has changed to MY_FIELD=A1010. As you see above, my maintainer redirect captured by Product Number entry from above and successfully passed it to my redirected application.

Created: October 7, 2011 | 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

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

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.