This example uses a instance of DbNetEdit in a dialog to create the ability to add a category to the category drop-down list. The example also demonstrates use of the
addInputControlButton to add a button adjacent to the category field which when clicked will open the dialog to add a category. The example also uses the
refreshListOptions method to re-populate the list of categories and the
onDependentListLoaded event and the
setInputControlValue method to select the added category. The dialog is implemented using the
jQuery.UI.Dialog class which is included automatically by DbNetSuite.