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 9015629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:47:45+00:00 2026-06-16T03:47:45+00:00

I have a store with a proxy configured to update my database. proxy: {

  • 0

I have a store with a proxy configured to update my database.

proxy: {
type: “ajax”,
api: {
create: MySite.app.BaseURL + ‘Member.php?action=create’,
read: MySite.app.BaseURL + ‘Member.php’,
update: MySite.app.BaseURL + ‘Member.php?action=update’,
destroy: MySite.app.BaseURL + ‘Member.php?action=delete’
},

This all works fine but what I would really like is to be able to read the response so to report to the user success or failure of an update.

For example when an update is successful the json below is returned in the response,

{“success”:true,”message”:”Updated”}

And if not successful then the following is returned,

{“success”:false,”message”:”something terrible happened”}

I’ve tried adding a listener to the store as below but this doesn’t seem to pick up the response.

    listeners: {

        success: function(response) {

                console.log(response);

                var data = Ext.JSON.decode(response.responseText.trim());

                console.log(data);  

                if(data.success == 'true') {
                console.log('success'); 
                }
        }
    },

Could anyone help?

  • 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-16T03:47:47+00:00Added an answer on June 16, 2026 at 3:47 am

    Stores don’t fire a success event. That has to be configure in each operation using the success, failure or callback functions.

    For example, when you perform a sync, you could do something like this:

    myStore.sync({
        success: function(batch, options) {
           console.log(response);
        }
    });
    

    Given stores work with bacths, to have to see the batch fields in order to know if it was okay or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ExtJS store with an ajax proxy and json reader: Ext.create('Ext.data.Store', {
I have a Grid, a Store and Model for its data and AJAX proxy
I have a store that loads data through a ajax proxy. What I would
I have a grid and REST store (proxy type 'rest') with it. I need
I have to store long strings in MySQL database using spring roo. I assumed
I have to store millions of entries in a database. Each entry is identified
I have this data store mystore= Ext.create('Ext.data.Store', { id: _id.boxesComboStore, fields: ['label', 'value', 'id',
I have this code: var comboStore = new Ext.data.Store({ proxy : new Ext.data.HttpProxy({ url
I am building a Sencha touch 2 app. I have a store that gets
I have a proxy defined on my Model. I have a store defined pointing

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.