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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:27:32+00:00 2026-06-01T16:27:32+00:00

When using the Ext.data.Store ‘mapping’ config property, of ‘x.y’, and the mapped model does

  • 0

When using the Ext.data.Store ‘mapping’ config property, of ‘x.y’, and the mapped model does not contain an ‘x’ property, the store throws an exception, which, prevents the store data from rendering into the grid view on data store load.

If the store source is out of your control, is it possible to avoid/catch the exception when the root of the mapping path does not exist. I’ve tried using a ‘convert’ function for the target property of the data store. The mapping path into the JSON document is only determined from the run context [e.g. this.mappingPath]. Dynamically generating the convert function (to catch the exception) seems to slow down the page a bit.

Is there a solution to null results along the model’s mapping path within the ExtJS API, or is catching the exception from within the convert function the way to go? Or possibly another solution…

  • 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-01T16:27:33+00:00Added an answer on June 1, 2026 at 4:27 pm

    I ended up just using a convert function with a call to a ‘followPath’ type function anywhere that this was the case. Follow path breaks up the mapping component into it’s parts (split on ‘.’) and iterates through the list readjusting the context to context = context[part] along the way. so the call is followPath(item.data,path). This performs well, and gets the job done.

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

Sidebar

Related Questions

I am using EXT-JS 3.2.0 and I have an Ext.grid.EditorGridPanel backed by a Ext.data.Store
I am trying to implement Ext.ux.grid.filter.ListFilter using a data store (rather than a hardcoded
I am using following code: var genres1 = new Ext.data.Store({ reader: new Ext.data.JsonReader({ fields:
I'm using Sencha's Ext.data.Store to hold some items. Right now they come from an
I explicitly add a filter to a Ext.data.Store using the store.filter(string, string) method. However,
I am using Ext.data.Store to call a PHP script which returns a JSON response
If you're using the Ext.js library, how does one do autocomplete in input text
I am using Ext.view.View for my data view. When I select one item 'selectionchange'
I created a grid using extjs library. First created a model: Ext.define('Option', { extend:
How to populate form with JSON data using data store? How are the textfields

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.