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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:58:01+00:00 2026-06-09T11:58:01+00:00

I am creating a Ext.data.JsonStore for dispalying a chart. The data store it built

  • 0

I am creating a Ext.data.JsonStore for dispalying a chart. The data store it built in C# code behing and inserted into the page via:

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Data", dataScript, true);

This is the resulting javascript code:

var store = Ext.create('Ext.data.JsonStore', {
   fields: ["name", "ASAP", "Phase 2", "test", "Version 2.0 SR 1"],

   data: [
{ "name": "ASAP", "ASAP": 30, "Phase 2": 10, "test": 5, "Version 2.0 SR 1": 10 } ,
{ "name": "Phase 2", "ASAP": 12, "Phase 2": 5,  "test": 15, "Version 2.0 SR 1": 5 }   
   ]
}); 

The problem is that in the field “Version 2.0 SR 1” there is a ‘.’ that is causing an a script error.

The error that it returns is:

SCRIPT1004: Expected ';' 
ext-all.js, line 18 character 5081

I am assuming that I need to encode in some manner, but I have tried modifying the field to with no avail:

Version 2\\.0 SR 1
Version 2\.0 SR 1
Version 2\u002E0 SR 1

If I remove the ‘.’ or replace it with ‘_’ the code works.

  • 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-09T11:58:02+00:00Added an answer on June 9, 2026 at 11:58 am

    The Ext.data.JsonStore class automatically configures itself with a proxy/reader configuration like this:

    proxy: {
        type  : 'ajax',
        reader: 'json',
        writer: 'json'
    }
    

    However, this isn’t sufficient for the case you’ve described, since you need to enable the useSimpleAccessors config on the JSON reader. The solution, then, is to use a regular Ext.data.Store instead, and specify the proxy and reader explicitly:

    var store = Ext.create('Ext.data.Store', {
        proxy: {
            type: 'memory',
            reader: {
                type: 'json',
                useSimpleAccessors: true
            }
        },
    
        fields: ["name", "ASAP", "Phase 2", "test", "Version 2.0 SR 1"],
    
        data: [
            { "name": "ASAP", "ASAP": 30, "Phase 2": 10, "test": 5, "Version 2.0 SR 1": 10 } ,
            { "name": "Phase 2", "ASAP": 12, "Phase 2": 5,  "test": 15, "Version 2.0 SR 1": 5 }   
        ]
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following code that I creating a grid var store = Ext.create('Ext.data.ArrayStore', {
I am trying to handle an exception in an Ext.data.Store instance when creating a
Here's a snippet of code, inserted immediately after creating my grid, that worked fine
I'm creating a data store that will load the data from server. I'm wondering
Creating an a app, where I store bunch of photos in the drawable folder,
Creating a google map with store locations within 50 miles of user entered address.
I am creating a page that only contains a gridpanel, I want my gridpanel
I have a setup where I am using amcharts that is feed data via
I am creating a new ExtJS widget using Ext.view.View. The template for this view
I am working on creating thumbnail image from the first page of pdf file.

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.