Registers your custom function with the Function Call Manager.
public void registerFunctionCall(
com.ibm.form.api.xfdl.FunctionCall theFCIInterface,
String thePackageName,
String theFunctionName,
int theFunctionID,
int theFlags,
String theCallingParams,
int theVersion,
String theQuickDesc
) throws UWIException;
Expression | Type | Description |
---|---|---|
theFCIInterface | FunctionCall | The FunctionCall object that will handle requests for the function. Setting: The FunctionCall object that is registering the function. See Usage Details® for more information. |
thePackageName | String | The name of the package that will contain the function. |
theFunctionName | String | The name of the function. |
theFunctionID | int | A unique number that can be used to identify the function. See Usage Details for more information. |
theFlags | int | A set of flags which indicate how the custom function will be evaluated. Setting: Typically FCI_FOLLOWS_STRICT_CALLING_PARAMETERS or 0. See Usage Details for more information. |
theCallingParams | String | The list of parameters that this function takes. Setting: S, O, or R. See Usage Details for more information. |
theVersion | int | The version number of the function. Setting: Function Version Number. See Defining a Version Number for more information. |
theQuickDesc | String | A short, one-line description of what the function does. |
Nothing if call is successful or throws a generic exception (UWIException) if an error occurs.
public static final int MULTIPLY_ID = 1;
"S,SO"
public class FciFunctionCall extends com.ibm.form.api.xfdl.FunctionCallImplBase
implements FunctionCall
{
public static final int FUNCTION_ID = 1;
/* Additional Code Removed */
theFCM.registerFunctionCall(this,"sample_package",
"multiply",FciFunctionCall.FUNCTION_ID,
FCI.FCI_FOLLOWS_STRICT_CALLING_PARAMETERS, "S,S", 0x01000300,
"Multiplies two numbers");
}