Salesforce

JCall (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

JCall (Magic xpa 4.x)

Calls to non-static Java class methods of a Java object.

Syntax:

JCall (pseudo-reference, [class.]method, method signature, parameters)

Parameters:

pseudo-reference – A reference to a Java object

method – An alphanumeric value defining the method name.

method signature – An alphanumeric value defining the method signature.

parameters – An alphanumeric value defining the arguments that need to be passed to the Java class.

Returns:

The return value from the method. The attribute is determined according to the value returned.

Example:

JCall(A,’length’,’()I’) will return the length of the string

A is a BLOB variable updated with "JCreate ('java.lang.StringBuffer','(Ljava/lang/String;)V','ABCDEFG')"

See also:

Java Functions

The Online Samples project (program JV02)

Reference
Attachment 
Attachment