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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:06:37+00:00 2026-05-26T01:06:37+00:00

I have a store as follows. var eventsStore = new Ext.data.Store({ model: ‘Event’, sorters:

  • 0

I have a store as follows.

var eventsStore = new Ext.data.Store({
    model: 'Event',
    sorters: [{
        property: 'OccurringOn',
        direction: 'DESC'
    }],
    proxy: {
        type: 'ajax',
        url: BaseURL + 'Events.php',
        api: {
            read: BaseURL + 'Events.php',
            create: BaseURL + 'Events.php'
        },
        reader: {
            type: 'xml',
            root: 'Events',
            record: 'Event'
        },
        writer: {
            type: 'xml',
            writeAllFields: false,
            root: 'Events',
            record: 'Event'
        }
    },
    getGroupString: function(record) {
        if (record && record.data.OccurringOn) {
            console.log(record.get('OccurringOn'));
            return record.get('OccurringOn').toDateString();
        }
        else {
            return '';
        }
    }
});

I also have a List view which gets all Events fine. I have a form which allows user to add new event and I have FormPanel for it. The FormPanel has Toolbar which has Save button which when clicked will do following.

var eventCard = It's a card

var newEventCard = eventCard.items.items[1];

var currentEvent = newEventCard.getRecord();

newEventCard.updateRecord(currentEvent);

var errors = currentEvent.validate();

// here I check errors and prompt user about them

var eventList = eventCard.items.items[0].items.items[0];
var eventStore = eventList.getStore();

eventStore.add(currentEvent);
eventStore.sync();
eventStore.sort( [ { property: 'OccurringOn', direction: 'DESC' } ] );
eventList.refresh();

The above code adds two empty rows to the MySQL database and copies the event list view items with 3 empty new items. Why this is the behavior and what I am missing?

If you can tell me what parameters are sent as POST to the Events.php when I sync that would much appreciated.

  • 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-26T01:06:38+00:00Added an answer on May 26, 2026 at 1:06 am

    It was my fault I figured out. I was echo’ing when there was POST request to the service.

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

Sidebar

Related Questions

I have a store: var store = new Ext.data.store({ autoLoad: true, autoSync: true, model:
I have a dojo.data.ItemFileReadStore as follows: var partyStore = new dojo.data.ItemFileReadStore({ id: 'partyStore', data:
We have a method which initialises a test database as follows: $db=file_get_contents('test-data.sql'); /* @var
I have a list stored in resultlist as follows: var resultlist = results.ToList(); It
I have a table with sales per store as follows: SQL> select * from
My directory structure looks like follows. (i'm using ext mvc ) www.mysite.com/ext/designer.js www.mysite.com/ext/app/view www.mysite.com/ext/app/store
My Entity Model is as follows: Person , Store and PersonStores Many-to-many child table
Suppose I have a user Schema as below var User = new db.Schema({ username
I have an XML file which is structured as follows: <row> <store>place1</store> <location>location1</location> </row>
I have created an entity data model from my database. however in certain areas

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.