.getValueList() not Working?

Version: 5.1.0 - build 956

I have an existing custom valuelist (‘order_list’) that contains both display and return values that is attached to a combobox. In the onDataChange() method for the combobox, I have the following code:

    var vlist = solutionModel.getValueList( 'order_list' )
    var arrayDisplayValues = vlist.getDisplayDataProviderIds()
    
    var message = 'List length = ' + arrayDisplayValues.length
    
    plugins.dialogs.showInfoDialog( 'DEBUG', message, 'OK' )

The length always is 0, even though the combobox displays 20-30 items in the drop-down list. I get the same results for .getReturnDataProviderIds().

I am attempting to retreive the display value using the return value captured by the onDataChange method and thought the solutionModel would do this for me.

Am I missing something?

Hi Kim,

this is not the way to go.
Just use: application.getValueListDisplayValue(‘Orderlist’, newValue)
Hope this helps

Thanks, Marc…that did the trick!