Results 1 to 3 of 3

Thread: Chained BufferedStore ViewModel

  1. #1
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Vienna, Austria
    Posts
    59

    Default Chained BufferedStore ViewModel

    Hi,

    I have a buffered store which works fine:

    Code:
    Ext.define('Mis6.store.GroupPolicyPeriodStore', {
        extend: 'Ext.data.BufferedStore',
        ...
    But it doesn't work if I add it to a ViewModel:

    Code:
     stores: {
          groupPolicyPeriodChained: {
              source: 'GroupPolicyPeriodStore'
          }
    }
    I get the error "Ext.mixin.Bindable.applyBind(): Cannot use bind config without a viewModel"

    If I am however using a unbuffered store like this it works:

    Code:
    Ext.define('Mis6.store.GroupPolicyPeriodStore', {
        extend: 'Ext.data.Store',
    It also works if I add a buffered store directly like this:

    Code:
    stores: {
          groupPolicyPeriod: {
              model: 'Mis6.model.GroupPolicyPeriodModel',
              buffered: true
          }
    My question: Is it not possible to add an existing buffered store to a ViewModel using a chained store?


    Any help is very much appreciated!
    Thanks,
    Horst

  2. #2

    Default

    Hi,

    Have you given
    Code:
    storeId:'GroupPolicyPeriodStore'
    in your bufferedstore.

  3. #3
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Vienna, Austria
    Posts
    59

    Default

    Thank you for your answer! Yes, the storeId is correct.

Similar Threads

  1. chained store, get source from another ViewModel
    By Leshicus in forum Ext 5: Q&A
    Replies: 1
    Last Post: 19 Jun 2015, 6:32 AM
  2. Chained store to GlobalStore in ViewModel
    By whb in forum Ext 5: Q&A
    Replies: 3
    Last Post: 13 May 2015, 8:37 PM
  3. Replies: 1
    Last Post: 3 Nov 2014, 1:51 PM
  4. Replies: 1
    Last Post: 29 Jul 2014, 7:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •