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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:50:06+00:00 2026-05-30T20:50:06+00:00

I am having the following issue, which I cannot seem to resolve, even searching

  • 0

I am having the following issue, which I cannot seem to resolve, even searching the forums online yielded no useful hints.

I have the following code, which determines the first selected record in an Ext.Tree.Panel and sends a destroy request. However, a JSON object is posted instead of the expected name/value query string.

var record = this.getClientUserTree().getSelectedRecord();

record.destroy({
     scope: this,
     success: this.onDeleteUserSuccess,
     failure: this.onDeleteUserFailure
});

I am including the code for the corresponding model as well as that of the dispatched request.

Ext.define('Admin.model.Client', {
    extend: 'Ext.data.Model',
    fields: ['id', 'name', 'company', 'address', 'postal_code', 'city', 'country', 'phone', 'fax', 'note'],

    proxy: {
        type: 'ajax',
        api: {
            read: 'clientajax',
            destroy: 'clientajax/delete'
        },
        reader: {
           type: 'json',
           root: 'results'
       }
    }
});

Posted string in the request:

{"id":"14","client":"5","username":"Testtest","firstName":"Genti","lastName":"Testing","role":"admin","superadmin":false}

Can anyone tell me what I am doing wrong?

Thank you for your help in advance,
Genti

  • 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-30T20:50:08+00:00Added an answer on May 30, 2026 at 8:50 pm

    The Ext.data.Model destroy method uses the proxy’s destroy method.

    Unfortunately I’ve never found a non JSON or XML proxy in the ExtJS4 API. I’ve always used the Ext.data.proxy.Server extraParams property to pass string value parameters to my server when I absolutely had to.

    You could also try extending the proxy to accommodate what you need but I’ve never tried it.

    With all that said, keep in mind that there are a great deal of libraries for parsing JSON or XML, it isn’t too hard to integrate them on your server, you should take a look at that route also.

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

Sidebar

Related Questions

I have the following application which replicates an issue I'm having in a larger
I am having the following issue : I have a table which looks like
I am having following issue with reading binary file in C. I have read
I'm designing a mySQL DB and I'm having the following issue: Say I have
We are having an annoying issue with Firefox and cookies. We have the following
I'm having an issue with rails involving javascript. Basically, I have the following code:
I'm having the following issue: I have a tab-style app. Eacht tab has its
I have the following Entities and the issue I am having is that I
I'm having the following issue in a WinForms app. I'm trying to implement Hotkeys
I'm having an issue with the following code: private void DataPortal_Fetch(TaskCriteria criteria) { using

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.