External Object Locations
External Object Template Locations Servlet Retrievals: *CALCOBJ Used with calculation External Objects or Constant calculations. *STRADVSCH Before searching change advanced field values. Convert value for search input then process filter. *ADVRECSEC Row Level Security. Click here for additional information. *READRECRD Call object after each record is processed. *SELECTFLT Used with External drop down lists. Read the rest of this document »
Sample External Object (SQL)
Calling a Sample External Object (SQL) This document will explain how to create, register, and call a sample External Object written in SQL. Recall from basic training that the purpose of an External Object is to call your back-end business logic directly through an m-Power web application. In this case, the purpose of this Read the rest of this document »
Sample External Object (Java)
Calling a Sample External Object (Java) This document will explain how to create, register, and call a sample External Object written in Java. Recall from basic training that the purpose of an External Object is to call your back-end business logic directly through an m-Power web application. In this case, the purpose of this Read the rest of this document »
Sample External Object (RPG)
Calling a Sample External Object (RPG) This document will explain how to create, register, and call a sample External Object written in RPG. Recall from basic training that the purpose of an External Object is to call your back-end business logic directly through an m-Power web application. In this case, the purpose of this Read the rest of this document »
Introduction to User Defined Functions (UDF)
UDF Introduction All applications created with m-Power employ SQL to access the database. SQL, by itself, is a very powerful language. A database User Defined Function (UDF) allows users to extend the power of SQL. UDF’s are a powerful yet simple way to perform routine data transformations, calculations, and complex SQL logic. Database vendors Read the rest of this document »
Create and Register a UDF
Create and Register a User Defined Function (UDF) A user defined function (UDF) allows users to extend the power of SQL. Like built-in database functions, UDFs are invoked from SQL statements. They can be a powerful yet simple way to perform routine data transformations, calculations, and complex SQL logic. Database vendors have specific requirements Read the rest of this document »
mrc Date Conversion UDFs
mrc Date Conversion UDFs (User-Defined Functions) mrc supplies three date conversion routines specifically for AS/400 databases. These routines are SQL functions located in MRCAPPLLIB, and they are available for use in logical and calculated fields. All three UDFs take a numeric date as an input parameter. Function specifications are described below. UDF Name Description Read the rest of this document »
Sample UDF Code
Sample User-Defined Function (UDF) Code Every database has its own rules for languages which may be used to write User Defined Functions (UDFs). Here are two examples, one written in SQL and another in RPG, showing how to create functions for DB2/400. Example 1: Writing a UDF with SQL We are going to build Read the rest of this document »
Java Date Translator
Java Date Translator (External Object) **NOTE: This Functionality Has Been Deprecated. Please use this link to see alternative features: http://www.mrc-productivity.com/docs/external-objects-udf/mrc-date-conversion-udfs mrc supplies a date translator specifically for use with generated Web/Servlet applications. This Java class is named mrc.servlet.MrcDateTranslator and resides in mrcextobj.jar. The object definition is shown below. If this object definition is not Read the rest of this document »
Add/Subtract Dates using the Java Date Translator
Add/Subtract Dates using the Java Date Translator **Note: This Feature Has Been Deprecated. Please use this link to find alternative features: http://www.mrc-productivity.com/techblog/?p=522 The Java Date Translator is a very powerful tool, commonly used to determine the difference between two dates (Most date conversion can now be accomplished with a UDF). However, there is Read the rest of this document »
