dropDownSetContentsFromPopup
is used in combination with menuitemPopup
. Use menuitemPopup
in the "Button (javascript)" field for a dropdown in a newedit or parameter page.
From the popup menu item, create a link to a javascript menu item that calls dropDownSetContentsFromPopup. When the user clicks on the link the popup window will close and the specified information is copied to the dropdown.
This function represents legacy functionality and should never be used for new development. Use Api.setFieldValueFromPopup or the Execute component's admin_setfieldvaluefrompopup
column instead.
SELECT
'Api.dropDownSetContents(id, label);' AS [JavaScript],
@id AS id,
@label AS label;
Api.dropDownSetContentsFromPopup(id, label)
The value that the dropdown will pass to the InsertUpdate procedure.
The value displayed in the dropdown.