Version
Version | Functional Change |
---|---|
11.0 | Difference from V10.0: Added the setName4Empty API. |

Before API use, read JS API Compatibility Description carefully. APIs are supported in both general reports and dashboards (new version) by default.
setName4Empty
API | setName4Empty(name) | To modify the default text Select None in the drop-down list of the drop-down box widget. |
---|---|---|
Parameter | name: string | New text, which is a string. |
Returned Value | void | |
Example | Example 1: You can modify the default text in the widget drop-down list to Select All when the obtained drop-down box widget object is defined as combo. combo.setName4Empty("Select All"); Example 2: In a general report, you can modify the default text in the drop-down list of the drop-down box widget named comboBox0 on the parameter panel to Select All. _g().getParameterContainer().getWidgetByName("comboBox0").setName4Empty("Select All"); Example 3: In a dashboard, you can modify the default text in the drop-down list of the drop-down box widget named comboBox0 in body to Select All. _g().getWidgetByName("comboBox0").setName4Empty("Select All"); ![]() setTimeout(function(){ _g().getParameterContainer().getWidgetByName("comboBox0").setName4Empty("Select All");}, 500); | |
Application Example | You can modify the default text in the drop-down list of the drop-down box widget to Select All. For details, you can download the template Modifying the Default Text in the Widget Drop-down List.cpt | |
Mobile Terminal | This API is not supported on mobile terminals. |