开发者

Ext.JS Store Record is undefined

开发者 https://www.devze.com 2023-01-12 17:05 出处:网络
var debtProtectionId = 0 // get the selected id of debt protection dropdown if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != \'\') {
var debtProtectionId = 0
    // get the selected id of debt protection dropdown
    if (mainPanel.generalPanel.calculationsFieldSet.debtProtection.getValue() != '') {
        debtProtectionId = mainPanel.generalPanel.calculationsFie开发者_如何学GoldSet.debtProtection.getValue();
    }
    // get the store record with this id
    var storeRecord = planCombinationsStore.getAt(debtProtectionId)

When I run the code it says 'storeRecord is undefined'.

What could be the cause of this?


Store.getAt expects an index to its internal collection. Do you mean Store.getById instead?

0

精彩评论

暂无评论...
验证码 换一张
取 消