:: Forum >>

AW.UI.List: Get Keys Instead Of Values


    var myList = new AW.UI.List;
    myList.setId( "myList" );
    //myList.setClass("text", "expand");
    myList.setSelectionMode( "multi" );
    myList.setItemText( myCommVals );
    myList.setItemValue( myCommKeys );
    myList.setItemCount( myCommVals.length );
    // onItemSelectedChanged fires twice; when value is true,
    // then index is array index of chosen item
    var prevIdx = -1;
    myList.onSelectedItemsChanged = function(values) {
        alert( values );
    document.write( myList );

First, is setItemValue() a valid method on a List object like on a Combo object?

Second, how does one get the array of selected keys ( set via setItemValue() ) versus the values returned in onSelectedItemsChanged?

Paul Tiseo
Thursday, May 11, 2006

This topic is archived.

Back to support forum

Forum search