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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:54:17+00:00 2026-05-30T17:54:17+00:00

The values are getting null in grid in Extjs when i am parsing these

  • 0

The values are getting null in grid in Extjs when i am parsing these values from json,basically this is because the properties label are with dots.

"properties": {
            "financialYear": "2009",
            "employee.employeeId": "12345",
            "employee.employeeName": "abc"
        }

How do i get employee.employeeId value in .js to be displayed in Extjs grid.

Right now i am mapping like this in .js,

Ext.define('DocProperties',{
extend: 'Ext.data.Model',
fields: [
    {name: 'financialYear', type: 'string'},
    {name:'employeeId', mapping:'properties.employee.employeeId',type: 'string'},
]});

and for display in grid panel i am accessing like this,

{
        width:100,
        header: "Employee ID",
        dataIndex: 'employeeId',
        sortable: true
    } 

any solution or workaround for this.


@DmitryB thanks,But this did not solve my problem,I have my store like this

Ext.onReady(function() {

var store = Ext.create('Ext.data.Store', {
    model: 'DocResult',
    autoLoad: true,
    proxy: {
        type: 'rest',
        url : 'sample-data.json',
        reader: {
            type: 'json',
            root: 'results',
            useSimpleAccessors: true
        }
    }
});

and in my model i defined like this

Ext.define('DocResult',{
extend: 'Ext.data.Model',
fields: [
    {name: 'id', type: 'int'},
    {name:'employeeId', mapping:'properties.employee.employeeId',type: 'string'}

] });

and then also in my Ext grid display the empty value comes .Please help.

  • 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-30T17:54:18+00:00Added an answer on May 30, 2026 at 5:54 pm

    Just looking through the source code, you might try the following:

    mapping:'properties["employee.employeeId"]'
    

    Try this in combination with useSimpleAccessors set to either true or false, and let me know what the outcome is.

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

Sidebar

Related Questions

I'm getting odd behavior (it generates only missing values) from the following loop -
So I've been getting some mysterious uninitialized values message from valgrind and it's been
I am currently getting first day Of this week and last week values with
I have designed one sign-up form,in this form after getting all necessary values I
I have some String variables which are getting the values from invoking the function
I am trying to get a JSON to iOS app, but keep getting NULL
This has me confused, I'm getting NULL columns for this query even though the
I am getting NULL values in the results of an operation in MySQL. Is
IN JAVA CODE IN JSP as below i m getting null value for fieldnoOfRecords.
Given the following code why am I getting different values for a and b

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.