2010-08-18 3 views
0
var debtProtectionId = 0 
    // get the selected id of debt protection dropdown 
    if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') { 
     debtProtectionId = mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue(); 
    } 
    // get the store record with this id 
    var storeRecord = planCombinationsStore.getAt(debtProtectionId) 

코드를 실행하면 'storeRecord is undefined'라고 표시됩니다.Ext.JS 상점 레코드가 정의되지 않았습니다.

무엇이 원인 일 수 있습니까?

답변

3

Store.getAt은 내부 컬렉션에 대한 인덱스를 필요로합니다. 대신 Store.getById을 의미합니까?

관련 문제