ObjectDoMethodArray
Mon 01 January 2018Syntax
ObjectDoMethodArray(Object_Name, Method_Name, Array_of_Args)
Description
Use the ObjectDoMethodArray function to invoke the method specified by method_name for the object object_name , passing in any required parameters using the array.
Use this function when you're not certain, at the time you're writing your PeopleCode program, how many parameters a method is going to require. If you know the number of parameters, use the ObjectDoMethod function instead.
The array of parameters
is an array of Any. It can only be one-dimensional. You cannot pass
in field references, that is, you can't pass in references of the
form
RECORD.FIELDNAME
.
If you do not want to supply any parameters, you can use an empty array, or a reference to a Null array.
Parameters
Field or Control |
Definition |
---|---|
Object_Name |
Specify an already instantiated object on which the method is to be evaluated. |
Method_Name |
Specify the name of an exposed method for the object. |
Array_Of_Args |
Specify an Array of Any containing the parameters for the method. |
Returns
Depends on the specified object and method if a result is returned or not.