:: Forum >> Version 2 >>

AW.UI.List: Get Keys Instead Of Values

Given:

<script>
    var 
myList = new AW.UI.List;
    
myList.setId"myList" );
    
//myList.setClass("text", "expand");
    
myList.setSelectionMode"multi" );
    
myList.setItemTextmyCommVals );
    
myList.setItemValuemyCommKeys );
    
myList.setItemCountmyCommVals.length );
    
// onItemSelectedChanged fires twice; when value is true, 
    // then index is array index of chosen item
    
var prevIdx = -1;
    
myList.onSelectedItemsChanged = function(values) {
        
alertvalues );
    };
    
document.writemyList );                
</
script>
 
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?

Thanks.
Paul Tiseo
Thursday, May 11, 2006



This topic is archived.

Back to support forum

Forum search