开发者

Ext.JS Store Record is undefined

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜