Results 1 to 3 of 3

Thread: Question about MVC structure

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    185
    Answers
    6
    Vote Rating
    1
      0  

    Default Question about MVC structure

    Hello !

    I have a question about ExtJS MVC structure.

    Well, i have to create a filter to a report, in the form have a client combo, the question is, in this combo can i use a store that already exists? How i use correctly this model and store that already exists?

    The second question is how the strucutre i need to create this form? i need to creat a new store for the report?

    Model
    Client.js
    Report.js
    Store
    Client.js
    Report.js
    View
    ReportForm.js
    ReportResult.js
    Controller
    Report

    Form code:
    Code:
    this.items = [
                {
                    xtype: 'form',
                    layout: 'form',
                     bodyPadding: 5,
                    items: [
                        {
                            xtype: 'combo',
                            name: 'clientId',
                            store: 'Client',
                            queryMode: 'remote',
                            fieldLabel: 'Client',
                            valueField: 'clientId',
                            displayField: 'clientName',
                            allowBlank: false
                        }
                    ]
                }
            ];
    Thanks!!!

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    The answers to your questions can be found here: MVC Application Architecture

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    185
    Answers
    6
    Vote Rating
    1
      0  

    Default

    Yes, but i have this issue, because, if i use a store that i already have created, the form sends all the store fields. This structure i've created is correct?

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •