Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Red face id in Controller is duplicated.

    Shows id in Controller before the models and after the init.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    140
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Could you give us some more details and perhaps a screenshot indicating what the problem is?
    Aaron Conran
    @aconran

  3. #3
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default

    Notice in the Controller below...
    id: above the models.
    id: below the init.
    The controler is duplicating the id: attribute.
    Thank You.

    Code:
    /*
     * File: BenAdmin/controller/Visits.js
     * Date: Tue Jan 17 2012 13:41:27 GMT-0600 (Central Standard Time)
     *
     * This file was generated by Sencha Designer version 2.0.0.
     * http://www.sencha.com/products/designer/
     *
     * You should implement event handling and custom methods in this
     * class.
     */
    
    Ext.define('BenAdmin.controller.Visits', {
        extend: 'Ext.app.Controller',
    
        id: 'control_visits',
        models: [
            'Visit'
        ],
        stores: [
            'Visit'
        ],
        views: [
            'Visits'
        ],
        refs: [
            {
                ref: 'list',
                selector: '#ben_list_search'
            }
        ],
    
        init: function() {
            this.control({
                "button[text='New Visit']": {
                    tap: this.onNewVisitButtonTap
                }
                });
        },
    
        id: 'control_visits',
    
        onNewVisitButtonTap: function(button, e, options) {
            console.log('New Visit Button');
            try {
    
                // set the visit id.
                var visitIndexField = this.getVisitIndex();
                visitIndexField.setValue(-1);
                // set the visit view to the active view.
                var vport = this.getVport();
                vport.setActiveItem(1);
                // this will trigger an activate function on the visit which will retreive and render the appropriate data.;
            } catch(e) {
                console.log('Exception New Visit',e);
            }
        }
    });

  4. #4
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default

    Controller doesn't have an id. Is this a custom property?

    I added id as a custom property and was not able to reproduce this.

    Need more data on how you got to this.
    Phil Strong
    @philstrong

  5. #5
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default

    Artistan can you try this again with the lasted released build, pretty please!
    Phil Strong
    @philstrong

  6. #6
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    140
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Closing until we are able to get a reproducible test-case.
    Aaron Conran
    @aconran

Thread Participants: 2