English
callPollingController
About 108 wordsLess than 1 minute
2025-12-16
This method helps you quickly call a custom controller function that takes a relatively long time to execute, usually more than 10 seconds. Its usage is the same as FxUI.userDefine.call_controller.
Syntax: FxUI.userDefine.callPollingController(apiName, parameters)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| apiName | apiName of the custom function (required) | string | — | — |
| parameters | Parameters uploaded when calling the API | Array | — | — |
Example
This method returns a Promise, as shown below:
const parameters = [{
type: 'string',
name: 'param1',
value: 123
}];
FxUI.userDefine.callPollingController('cus_controller__c', parameters).then((res) => {
if(res.Result.StatusCode == 0) {
// data returned by the custom function
console.log(res.Value);
// todo what you want
}
}).catch(err => {
console.log(err);
})