PDA

View Full Version : [NOREPRO] id in Controller is duplicated.



Artistan
10 Jan 2012, 12:08 PM
Shows id in Controller before the models and after the init.

aconran
11 Jan 2012, 12:28 PM
Could you give us some more details and perhaps a screenshot indicating what the problem is?

Artistan
19 Jan 2012, 6:09 AM
Notice in the Controller below...
id: above the models.
id: below the init.
The controler is duplicating the id: attribute.
Thank You.


/*
* 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);
}
}
});

Phil.Strong
7 Feb 2012, 12:30 PM
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
9 Feb 2012, 2:55 PM
Artistan can you try this again with the lasted released build, pretty please!

aconran
14 Feb 2012, 3:16 PM
Closing until we are able to get a reproducible test-case.