Skip to content

Getting LOVs

Oleg edited this page Dec 9, 2019 · 2 revisions

Methods that could be used to get the available values for the controls that expose the picklists:

  • getDynamicLOV(controlName) - returns the available values for the dynamic picklist associated to the control, it doesn't return the currently selected value. The Nexus Bridge puts the warning in the console when the method is called for not correct control. Use the method when the uiType control attribute is JComboBox and staticPick is false; also you can check the value returned by the isDynamic(control).

  • getStaticLOV(controlName) - returns the available values for the static picklist associated to the control. If this method doesn't return values when there are no records displayed, set the value of the HTML Type control property to Text in the Tools. The Nexus Bridge puts the warning in the console when the method is called for not correct control. Use the method when the staticPick control attribute is true; also the value returned by isStatic(control) is true.

  • getLOV(controlName) - the wrapper method that checks the type of the control and calls getDynamicLOV or getStaticLOV. In the case of misconfiguration, it assumes that the LOV is dynamic.