Results 1 to 2 of 2

Thread: How to read a json file from Hard Disk

  1. #1

    Default How to read a json file from Hard Disk

    Hellow i am very new in Sencha Architect.I need to read a json file from my hard disk.I have created the model and the Store.But while loading the store gives an error wgich says "Unable to load data using the supplied configuration".I cant find the problem.The json file is in the Sencha Architect Project folder.Bello i am giving the code of my model and the store.Anyone can please help me with this?
    Regards -
    Arafat Alam

    here is the model
    Ext.define('MyApp.model.Category', {
        extend: '',
        config: {
            proxy: {
                type: 'ajax',
                url: 'categories.json',
                reader: {
                    type: 'json'
            fields: [
                    name: 'urlId',
                    type: 'string'
                    name: 'label',
                    type: 'string'
    and here is the code of the store
    Ext.define('', {
        extend: '',
        requires: [
        config: {
            autoLoad: true,
            model: 'MyApp.model.Category',
            storeId: 'categoryTreeStore',
            root: {
                expanded: true

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Olney, MD


    In your project settings what is your url prefix?
    Phil Strong

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