Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:40:46+00:00 2026-06-05T22:40:46+00:00

im trying to use direct store in Extjs heres the code to my store

  • 0

im trying to use direct store in Extjs
heres the code to my store

Ext.define('IDE.store.Files', {
    extend: 'Ext.data.Store',
    proxy: {
        type: 'direct',
        api: {
            create:Files.AddNew,
            read:Files.GetFile,
            update:Files.Update,
            destroy:Files.Delete,
            //load:Files.GetFile
        },
        paramOrder:'Path'
    },
    model:'IDE.model.File'
})

the code for model is

Ext.define('IDE.model.File', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'Path', type: 'string' },
        { name: 'Name', type: 'string' },
        { name: 'Extention', type: 'string' },
        { name: 'Content', type: 'string' }
    ],
    idProperty:'Path',
    store:'IDE.store.Files'
})

as you can see the idProperty is Path
the following code segment is giving error

//this.getStore('IDE.store.Files').load(path, { sucess: function (file) {
//                console.log(file.get('Content'));           
//            } });
this.getStore('IDE.store.Files').load(path);

here im getting path from somewhere and trying to load a file from the particular path
the error is

 Ext.data.proxy.Direct.doRequest(): No direct function specified for this proxy

now the problem is that documentation of extjs isnt enough and everywhere i searched i could only see 4 api in the api object of proxy.
Which are
1.create
2.read
3.update
4.destroy

which api am i missing ? OR
where do i need to give a direct function for load()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:40:47+00:00Added an answer on June 5, 2026 at 10:40 pm

    there are multiple problems that i could figure out with my code so just putting here for help of community.
    1. the way i was calling the load function is correct.. and it just doest takes the parameter but a whole object with scope and callback so mayb that was the error saying
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store-method-load
    2. if i just remove the api.. and use the directFn config option then it appears to work..

    Code:

    Ext.define('IDE.store.Files', {
        extend: 'Ext.data.Store',
        proxy: {
            type: 'direct',
            directFn: Files.GetFile, // <--- new line of code
            api: {
                create:Files.AddNew,
                //read:Files.GetFile, // <--- old line of code
                update:Files.Update,
                destroy:Files.Delete
            },
            paramOrder:'Path'
        },
        model:'IDE.model.File'
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use this code, and these instructions to do direct messages. Posting
I'm trying to use direct commands to gdb through xcode's console window when the
I trying to use twitter API to send direct messages using C# but Twitter
I'm trying to use JS to direct a user to their profile page on
I'm getting the following error when trying to use the Direct Show 9 backend
I'm trying to use the BETWEEN with column names instead of direct values, something
i'm trying use facebook API to upload photo in my fan page. I downloaded
I am trying use gem tire to search in my application. I have tables
I was trying use a set of filter functions to run the appropriate routine,
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.