Store - Remove All Similar Values - Help!!?!

  1. #1

    Store - Remove All Similar Values - Help!!?!

    I am despertely trying to remove all records in a store that share a similar "PackageID" value - so, whatever value is passed into the function - all records with a similar value - remove from the store - I am trying the below, but every step I take I get JS errors:


    var deleteselectgroup = function (val) {
                var group = Ext.getCmp('GridPanel2').store.getById(val).get('PackageID');
                Ext.getCmp('GridPanel2').store.query("PackageID", group).each(function (record) {
                    Ext.getCmp('GridPanel2').store.remove(record);
                });
            }
  2. #2
    Still can't get it... I receive an error Unable to get value of the property 'get': object is null or undefined"
    Last edited by Tbaseflug; Dec 07, 2012 at 3:07 PM.
  3. #3
    Can you provide a running example?

Similar Threads

  1. Replies: 4
    Last Post: Jan 12, 2012, 11:47 AM
  2. [CLOSED] How to remove negative values in export
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 09, 2011, 1:30 PM
  3. [CLOSED] Store.remove(record) and Store.reload()
    By capecod in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 08, 2010, 10:03 AM
  4. [CLOSED] Combobox remove all values
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 18, 2009, 10:33 AM
  5. Replies: 10
    Last Post: Nov 20, 2008, 3:17 PM

Posting Permissions