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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:50:19+00:00 2026-06-04T15:50:19+00:00

Hi i’ve been getting this error message for a while now and i’d like

  • 0

Hi i’ve been getting this error message for a while now and i’d like to know what am i missing. Thanks in advance.

This is the model:

 Ext.define('Recepcion',{
            extend: 'Ext.data.Model',
            fields: [
                {name: 'obra_social_id', type: 'string'},
                (... etc)
            ]
        });

This is the Store:

//the first line is the array supposed to contain the data?

var datosPlanillaRecepcion= [];

var storePlanillaRecepcion = Ext.create('Ext.data.Store', {
    model: 'Recepcion',
    data: datosPlanillaRecepcion,
    proxy: { type: 'memory'},
    autoSync:true
});

And finally the grid bound to the store

planillaRecepcionGrid = Ext.create('Ext.grid.Panel', {

        id:'gridRecepcion',
        store: storePlanillaRecepcion,
        flex:0.7,
        height:600,
        autoScroll:true,
        selType: 'cellmodel',
        plugins: [cellEditing],
        columns: [
            columnaOS = Ext.create('Ext.grid.column.Column', {
                text     : 'Obra Social',
                flex     : 0.5,
                sortable : false,
                dataIndex: 'obra_social',
                renderer: function(value){
                    //return pasarMayusculas(value);
                    return value;
                },
                editor: {
                    allowblank: false
                    //clicksToEdit : 1
                }
            }),
            columnaTotal = Ext.create('Ext.grid.column.Column',{
                text     : 'Total',
                flex     : 0.2,
                sortable : false,
                dataIndex: 'obra_social_recepcion_cantidad_total',
                value    : ' ',
                editor: {
                    type:'numberfield',
                    allowblank: false,
                    minValue: 0,
                    maxValue: 1000000
                },
                renderer: function(value){
                    if (value==0)
                        return '';
                    else
                        return value;
                },
                listeners:{
                    validateedit: function(){

                        return true;
                    }
                }
            }),

            (...)

            {
                xtype: 'actioncolumn',
                width: 50,
                items: [{
                    tooltip: 'remove',
                    handler: function(grid, rowIndex, colIndex) {
                        var rec = grid.getStore().getAt(rowIndex);
                        grid.getStore().remove(rec);

                    }
                }]
            }],

        viewConfig: {
            stripeRows: false,
            border: 25,
            markDirty:false,
            listeners: listenersGridRecepciones
        }


    });

as you see i use the Cell Editing Plug-in to fill the grid with data.
I do this by programatically adding rows to the grid this way

grid.getStore().add({});

adding emtpy objects and the editing them with the mentioned plug in

the thing is that when i click on the action column it throws me the

‘o is undefined’ error and a line number pointing to the following function

getKey : function(o){
   return o.id;
}, 

wich by the way belongs to Ext.util.AbstractMixedCollection

what can it be?, i know! “is a pain in the ass” question but perhaps i’m missing something really simple

Thanks!

  • 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-04T15:50:21+00:00Added an answer on June 4, 2026 at 3:50 pm

    how to fix

    This is a bug, just place the null check by replace code in MixedCollection
    
    getKey : function(o){
    if(o)
    return o.id;
    else
    return null;
    }
    
    thanks,
    Kamal A. Siddiqui
    Sr. Software Engineer (ACIT)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
I've got a string that has curly quotes in it. I'd like to replace

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.