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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:08:22+00:00 2026-05-31T20:08:22+00:00

Here, the Sencha team explains how to have a one to many relationship: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store

  • 0

Here, the Sencha team explains how to have a one to many relationship:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store

And you get more in detail here:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.reader.Reader

where they explain that

“This may be a lot to take in – basically a User has many Orders, each
of which is composed of several OrderItems. Finally, each OrderItem
has a single Product.”

Nice.

Now I want to have a Form where there’s the user information PLUS a grid of the user’s orders (not the MVC framework, just a a derived class of form.Panel).

How can I do this? Here’s the beginning of my form.Panel class, where there are only fields. I just want to add to it a datagrid that is linked with Product.

So I create my store, like in the example, Sencha gave, then I create a grid that is linked to a MyFramework.form.Panel, and everything works fine. I just want to make something like a “nested table”, a one to many grid in that class, to display the products that belong to the current user.

Any idea how to do this?

Ext.define('MyFramework.form.Panel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.writerform',

    requires: ['Ext.form.field.Text'],

    initComponent: function(){
        this.addEvents('create');
        Ext.apply(this, {
            activeRecord: null,
            iconCls: 'icon-user',
            frame: true,
            title: 'User',
            defaultType: 'textfield',
            bodyPadding: 5,
            fieldDefaults: {
                anchor: '100%',
                width: 500,
                labelWidth: 200,
                labelAlign: 'right'
            },  
            items: [{
                xtype:'tabpanel',
                activeTab: 0,
                defaults:{
                    layout: 'fit',
                    bodyStyle:'padding:10px'
                },  
                items:[{
                    title:'General information',
                    defaultType: 'textfield',
                    items: [{
                        fieldLabel: 'Titre ',
                        name: 'titre',
                        allowBlank: false
                    },{ 
                        fieldLabel: 'Image grande ',
                        name: 'imgGrande'
                    }]  
                },{
                    title:'Products',
                    defaultType: 'textfield',
                    items: [
                        /*
                         * Advices/example here!
                         * I'm stuck!
                         */
                    ]  
                }]  
            }]
        });
        this.callParent();
    }
});
  • 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-31T20:08:23+00:00Added an answer on May 31, 2026 at 8:08 pm

    You can work with the concept of Dynamic Form interacting with an embbed grid.

    Of course that doesn’t suit your needs right away. My advice, though, is to start from there and try to implement a field that will be related to an embbed grid, in your case a grid of products.

    With that said, you wouldn’t have a form that is filled by the embbed grid selection, but a single field that gets filled like a ComboBox, but by the grid selection.

    Maybe try the Ext.form.LookUp field, a component that I’ve created that is kinda related to that problem.

    This component is not exactly what you are looking for, since it works with single records, like with one to one relationships. But you can try to implement something from there.

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

Sidebar

Related Questions

I've taken the MVC introduction ( http://dev.sencha.com/deploy/ext-4.0.7-gpl/docs/index.html#!/guide/application_architecture ) and tried to modify it to
I'm trying to change this ext js treegrid sample: http://dev.sencha.com/deploy/ext-4.0.1/examples/tree/treegrid.html All I want is
i am trying to follow this example here : http://www.sencha.com/forum/showthread.php?11735-How-can-I-ADD-to-baseParams-rather-than-overwrite-one-set-of-baseParams-with-another The objective is to
On a sencha-touch, here's is my store declaration Ext.regStore('newsStore', { model: 'News', autoLoad: true,
I'm trying to work with a Sencha Touch calendar extension (http://www.sencha.com/forum/showthread.php?156351-Ext.ux.TouchCalendar) Here is an
I have a sencha touch app here: http://jsfiddle.net/sSyqF/ where I want the first tab
Here is my Sencha view: Ext.application({ name: 'Sencha', launch: function() { var panel =
I have a Sencha Touch App that loads data from a REST service into
I am new to Sencha Touch and Phonegap. I have one html file and
In Sencha Touch, I often need to have an Ext.DataView panel that contains a

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.