SoftadminApi.Javascript_DropdownSetContentsScript

Type: Scalar function

Avoid using this function and opt for the dedicated column ADMIN_SetFieldValueFromPopup. This column is supported by components like NewEdit and Execute.

Use this function in a JavaScript menu item to generate a javascript that sets the value of a dropdown control from a popup window.

NOTE: All other options in the dropdown will be removed.

Return value: ntext

Javascript that performs the required operations.

Parameters

@ID mandatory ntext
ID for the option in the dropdown control.
@Text mandatory ntext
Displayed text for the option in the dropdown control.