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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:14:51+00:00 2026-05-22T14:14:51+00:00

Ive created a store, which I can manipulate. var storeJ = new Ext.data.JsonStore({ root:

  • 0

Ive created a store, which I can manipulate.

var storeJ = new Ext.data.JsonStore({
    root: 'data',
    idProperty: primaryKey,
    id:'storeJ',
    fields: [primaryKey,'name', 'code', 'email'],
    autoSave:true,
    storeId: 'storeJ',
    proxy: proxyJ,
    writer: writer,
});
storeJ.load();

When I try to add to this store, via a button, I return a Pk ( via php )
This happens after
storeJ.insert(0, r);

//Tbar Item
handler: function(){
  var r = new storeJ.recordType({   });             
  grid.stopEditing();
  storeJ.insert(0, r);
  grid.startEditing(0, 1);
}

I assume I need some kinda listener to get there, but how on earth do I create it?

  • 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-05-22T14:14:51+00:00Added an answer on May 22, 2026 at 2:14 pm

    ensure you pass a object in your return, and that the root of the store is correctly pointed to the right object.
    Simply returning 1 or so won’t work, you need to return json_encode($return[‘data’]=>1); or its equivalent in the above defined store.

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

Sidebar

Related Questions

I've created a python application which uses elixir/sqlalchemy to store data. The second release
I've created a simple parameterless stored procedure which I've pasted below. I've imported the
I've created a game which gives a score at the end of the game,
I've a name of a class stored in var, which I need to create
In my app, i've created the TList type list where i store the pointers
I've created an Entity Data Model and imported several stored procedures as Function Imports.
I've created an Component with an Condition DISABLEMSIUPGRADE, which get's set when I install
I've created a wordpress plugin which automatically adds a <!--more--> tag to your post
I've created a button within the Admin theme, which is named 'Create order for
Simple situation. I've created an application which uses SQL Server as database. I could

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.