Results 1 to 3 of 3

Thread: Tab Merges in each other and getting error...

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Tab Merges in each other and getting error...

    I am getting following error when i run application again and again..
    uncaught type error cannot call method 'insertbefore' of null in sencha-touch.js at line 8345.
    I am using sencha touch 1.0 version for application.

    Can anybody tell me why this issue occurs?
    Please help to get out of this problem.

    Thanks,
    Prafull

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    What code produces this?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    We are working on a cross platform mobile application for Android and iPhone.
    We are using sencha 1.0 and corodova 2.0.
    Solving this issue is very high priority.

    While working with stores we always get this below issue

    E/Web Console(3333): Uncaught TypeError: Cannot call method 'insertBefore' of null at file:///android_asset/www/sencha/sencha-touch.js:8345

    We are using store in following way
    data.mDocResponse.consultQuestions = data received from web service.

    var values = Ext.ModelMgr.create(data.mDocResponse.consultQuestions,'ConsultationQuestionDto');
    var consultationQuestionStore = Ext.getStore('ConsultationQuestionStore');
    consultationQuestionStore.getProxy().clear();
    consultationQuestionStore.data.clear();
    consultationQuestionStore.add(values);
    consultationQuestionStore.sync();

    Every time we get data from web service we use the same steps.
    Please let us know if we are doing it wrong and let us know the better approach to use.

    The store is defined as

    Ext.regStore('ConsultationQuestionStore',{
    model: 'ConsultationQuestionDto',
    autoLoad:true,
    proxy: {
    type: 'localstorage',
    id: 'Mdoc-consultation-question-store'
    }
    });

    Corresponding model is defined as
    Ext.regModel('ConsultationQuestionDto', {
    fields: [
    {name: 'id',type: 'string'},
    {name: 'patientId',type: 'string'},
    {name: 'doctorId',type: 'string'},
    {name: 'consultId', type: 'string'},
    {name: 'question', type: 'string'},
    {name: 'answer',type: 'string'},
    ],
    validations: [
    {type: 'presence', name: 'question', message : "Enter Text"}
    ]
    });

    We tried with loadData and loadRecords option also for store.
    Please Help Us.

Tags for this Thread

Posting Permissions

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