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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:06:48+00:00 2026-06-03T15:06:48+00:00

Proxy update on ExtJS is not loading my update API instead it loads URL

  • 0

Proxy update on ExtJS is not loading my update API instead it loads URL which I use to display data on GRID.

<script type="text/javascript">

Ext.onReady(function () {

    var CoventryItemListStore = new Ext.data.Store({
        storeId: CoventryItemListStore,
        autoSave: true,
        writer: new Ext.data.JsonWriter(),
        reader: new Ext.data.JsonReader({
            idProperty: 'id',
            root: 'variables'
        }, [{
            name: 'id'
        }, {
            name: 'itemid'
        }, {
            name: 'triggerQuantity'
        }, {
            name: 'lastUpdatedBy'
        }, {
            name: 'lastUpdatedOn'
        }]),
        proxy: new Ext.data.HttpProxy({
            method: 'POST',
            prettyUrls: false,
            url: '/admin/loadCoventryItemApprovalList.epm',
            api: {
                update: '/admin/updateCoventryItemApprovalList.epm'
            }
        }),
        listners: {
            'write': function (store, action, result, res, rs) {
                if (action == 'update') {
                    var newId = res.raw.newId;
                    var oldId = res.raw.oldId;
                    if (newId != oldId) {
                        CoventryItemListStore.reload();
                    }
                }
            }
        }
    });

    CoventryItemListStore.load();

    var fm = Ext.form;

    var CoventryItemListGridUi = Ext.extend(Ext.grid.EditorGridPanel, {
        title: 'Coventry Item List',
        store: CoventryItemListStore,
        width: 980,
        height: 650,
        renderTo: 'coventryDiv',
        defaults: {
            width: 280
        },
        defaultType: 'textfield',
        stripeRows: true,
        //  reader: CoventryItemListReader,
        autoExpandColumn: 'coventryListCol',
        align: 'center',
        clicksToEdit: 1,
        initComponent: function () {
            this.columns = [{
                xtype: 'gridcolumn',
                header: 'ID',
                sortable: true,
                dataIndex: 'id'
            }, {
                xtype: 'gridcolumn',
                header: 'ITEM ID',
                sortable: true,
                width: 250,
                align: 'center',
                dataIndex: 'itemid'

            }, {
                xtype: 'gridcolumn',
                header: 'TRIGGER QUANTITY',
                sortable: true,
                // id: 'ftpCol',
                width: 200,
                align: 'center',
                dataIndex: 'triggerQuantity',
                editor: {
                    xtype: 'numberfield'
                }

            }, {
                xtype: 'gridcolumn',
                header: 'LAST UPDATED BY',
                sortable: true,
                width: 80,
                align: 'center',
                dataIndex: 'lastUpdatedBy',
                id: 'coventryListCol'
            }, {
                xtype: 'gridcolumn',
                header: 'LAST UPDATED ON',
                sortable: false,
                width: 100,
                align: 'center',
                dataIndex: 'lastUpdatedOn',

            }];

            this.listeners = {
                'afteredit': function (e) {
                    params: {
                        var oldVal = e.originalValue;
                        var newVal = e.value;
                        var fieldName = e.field;
                        var itemID = e.record.get("itemid");
                    }
                    alert('Field \'' + fieldName + '\' changed from \'' + oldVal + '\' to \'' + newVal + '\'.(itemID: ' + itemID + ')');
                }
            }

            var itemsPerPage = 100;
            this.bbar = new Ext.PagingToolbar({
                pageSize: itemsPerPage,
                autoLoad: true,
                store: CoventryItemListStore,
                displayInfo: true,
                displayMsg: 'Displaying categories {0} - {1} of {2}',
                emptyMsg: "No categories to display"
            });

            this.tbar = new Ext.Toolbar({
                xtype: 'toolbar',
                items: [{
                    xtype: 'textfield',
                    id: 'searchValue'
                }, {
                    xtype: 'button',
                    text: 'Search',
                    style: 'marginLeft: 5px',
                    enableToggle: true,
                    handler: function () {
                        vms.reload({
                            params: {
                                searchValue: Ext.getCmp('searchValue').getValue()
                            }
                        });
                    }
                }]
            });

            CoventryItemListGridUi.superclass.initComponent.call(this);
        }
    });

    new CoventryItemListGridUi();

});

</script>
  • 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-03T15:06:49+00:00Added an answer on June 3, 2026 at 3:06 pm

    well re posting the answer for better visibility

    proxy: new Ext.data.HttpProxy({ method: 'POST', prettyUrls: false, url: '/admin/updateCoventryItemApprovalList.epm', api: { read: '/admin/loadCoventryItemApprovalList.epm' } })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my ExtJS application I use EditorGridPanel to show data from server. var applicationsGrid
I would like to know how to use the api attribute of a proxy
I have a store that loads data through a ajax proxy. What I would
Our proxy went down and I tried to update dependencies with Maven while it
Update 2022 There is cloud sql proxy now: https://cloud.google.com/sql/docs/mysql/sql-proxy#how-works Old Question I am currently
I use a proxy model on User like class Nuser(User): class Meta: proxy =
I am behind a proxy server and thus I cannot update rvm with rvm
I want to do a data update using Oracle. I have a situation where
I have a grid and REST store (proxy type 'rest') with it. I need
Update: question now contains the final edited answer! I now use the following (final

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.