【问题标题】:Working with ExtJs4 combobox in forms在表单中使用 ExtJs4 组合框
【发布时间】:2012-04-24 06:47:27
【问题描述】:

我有产品编辑表单,带有组合框字段定义:

 xtype: 'combo',
 fieldLabel: _('Supplier'),
 hideTrigger: true,
 displayField: 'company',
 valueField: 'id',
 name: 'supplier',
 store: 'Supplier',

当表单加载时,我使用标准功能:form.loadRecord(record),在组合中我看到supplier_id ???如果我做选择,有公司。会发生什么?

【问题讨论】:

    标签: combobox extjs4


    【解决方案1】:

    这很可能是时机。你什么时候加载你的Supplier 商店?是自动的吗?那么它很可能是在您调用loadRecord之后加载的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 2015-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多