1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    4
    Vote Rating
    0
    deshmukhprafull is on a distinguished road

      0  

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

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


    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,735
    Answers
    3364
    Vote Rating
    756
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Looks like you aren't running your app from a web server, you need to or else your Ajax calls won't work 100%
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar