Options
All
  • Public
  • Public/Protected
  • All
Menu

Apex Remote Input Object. This is used for invoking Apex RemoteAction.

example

 // Sample Apex Class - ProductConsoleControllerV2.cls
 @RemoteAction
   global static Object invokeMethod(String methodName, String serializedInputs) {
       return retObj;
   }

 // Sample IApexRemoteInput
 const apexRemoteInput = {
   className: "ProductConsoleControllerV2",
   methodName: "invokeMethod",
   paramsArray: [
    // first arg corresponds to first arg in Apex invokeMethod(methodName, ...)
    "getCustomLabels",
    // second arg corresponds to second arg in Apex invokeMethod(. , serializedInputs)
    JSON.stringify({
        "labelNames": this.uriEncodedTextToTranslate(),
        "language": this.language
      })
   ]
 }

 // Using IApexRemoteInput in DataSource
 dataSourceService.apexRemote(apexRemoteInput).execute().then(...);

Hierarchy

  • IApexRemoteInput

Index

Properties

className

className: string

Optional config

config: object

Optional inputMap

inputMap: any

methodName

methodName: string

Optional paramsArray

paramsArray: any[]

Generated using TypeDoc