Sample External Object (Java) Source Code package MRCWORKLIB; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.apache.log4j.Logger; import com.mrc.dbo.MrcConnection; /** * Delete Order # from MRCWORKLIB.ORDDET * 2011-09-22 * @author RH * * 2. Define external object * * Class Name: MRCWORKLIB.DELDETAIL * Method Name: run * Then define one object parm to Read the rest of this document »
Browse By Category
Starting with m-Power (12)Retrievals (3)
Reports (14)
Summaries (1)
Maintainers (9)
Graphs (6)
General (21)
Calculations (4)
m-Power Administration (11)
Security (5)
Freemarker (6)
m-Painter (18)
Form Validation (5)
External Objects & UDFs (10)
Popular Tags
Graphs Conditional Calculations Bar Graphs Oracle Email Reports Maintainers MS SQL Form Validation Database PDF Application Properties m-Power Production MySQL Java Graph Properties Compiling Calculations SQL Tomcat m-Painter Freemarker Retrievals Security DB2 Dates Parameters UDF Templates CSS Smartlinking Subtotals Prompt Screens Admin HTML Excel mrc-Productivity Series Line Graphs Firefox External Objects Data Dictionary Getting Started Summaries DropdownsSee all tags »
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 »
Validating via a Java External Object
Validating via a Java External Object This document will explain how to call an external object Java program for validity checking. For basic information regarding validity checking please see this document. The source code for the Java used in this example can be found here. The purpose of this object is to check to Read the rest of this document »
Validating via a Java External Object Source Code
Validating via a Java External Object Source Code package MRCWORKLIB; public class Validate { public void valid_fields(String[] args) { String strdatex = args[1].replaceAll(“,”, “”); String enddatex = args[2].replaceAll(“,”, “”); int strdate = Integer.parseInt(strdatex); int enddate= Integer.parseInt(enddatex); if ((strdatex.compareTo(“0″) == 0 ) && (enddatex.compareTo(“0″) == 0 )) { args[0] = “You have not entered any Read the rest of this document »
Add/Subtract Dates using the Java Date Translator
Add/Subtract Dates using the Java Date Translator 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 an often overlooked feature that has proved to be useful to a number of our clients, Read the rest of this document »
Java File Copy
Java File Copy The Java File Copy feature makes it simple to copy data tables from one DB to another. This feature works on any OS and any DB supported by m-Power. The JDBC connection property information is required for each execution of this feature and includes that as part of the parameters set. Read the rest of this document »
Java Date Translator
Java Date Translator (External Object) 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 on your system, then a cumulative update from August 1, 2004 or later will install Read the rest of this document »
