For processing the data, the input parameter can be used by the method. The return type of this method is a StringList, which contains one or more field value to be displayed. Here is a template for this kind of JPO method: public static Object methodName(Context context, String[] args) throws Exception { HashMap programMap = (HashMap) JPO.unpackArgs(args); HashMap requestMap = (HashMap) programMap.get("requestMap"); HashMap paramMap = (HashMap) programMap.get("paramMap"); String objectId = (String) requestMap.get("objectId"); String relId = (String) paramMap.get("relId"); String languageStr = (String) requestMap.get("languageStr"); // initialize the return variable StringList fieldValues = new StringList(); // define and add selects if required // Process the information to obtain the values if ( objectId != null) { //add the field values fieldValues.addElement(?); } return fieldValues; } |