-
9 Feb 2012 9:51 AM #1
Refs not generating getters in beta 2?
Refs not generating getters in beta 2?
I had this problem using an earlier version, but even with upgrading to beta 2, I am still getting null returned for my views when call getView from the controller:
so with a view with id: dataList
getDataList() returns null in init();
BTW, in order to use beta2 I had to move sencha-touch-all-debug.js from the builds directory to the root directory otherwise the .js and .css files wouldn't resolve properly.
Any ideas?
-
9 Feb 2012 10:16 AM #2
I realized this yesterday when we did the upgrade on the server. Expect the next build of designer to prefix builds/ in the path.
Where is the code you are invoking getView/getDataList from? What do your references look like? Could you send us a simple sample project?Aaron Conran
@aconran
Sencha Architect Development Team
-
9 Feb 2012 10:28 AM #3
In case this isn't obvious:
In this case you would need to associate the top level view to the controller in question
Also you would need to create a controller reference (from toolbox) on the controller
setting the ref: dataList
setting the selector: #dataListPhil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
9 Feb 2012 10:48 AM #4
Sample project
Sample project
This project is basically following along the project in the video: First Look at Sencha Designer 2.0. All I have is a simple view where I am trying to put menu items.
-
9 Feb 2012 10:56 AM #5
How do you associate the top-level view to the controller? To my knowledge I am following exactly the steps in your video.
-
9 Feb 2012 11:22 AM #6
BTW, Our main prototype App written in 2.0.pr3 does not display at all in beta 2.
-
9 Feb 2012 11:35 AM #7
First thing I see is your controller doesn't have MainNav as a view
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
9 Feb 2012 11:45 AM #8
-
10 Feb 2012 2:08 PM #9
So the refs are generating correctly otherwise it would error out on getDataList (saying it was undefined). What's happening here is that nothing has yet to render because you haven't configured your store correctly?
store isn't set to autoLoad nor is the proxy url set.Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
SenchaCon or bust!
Known Bugs in Architect Latest
-
11 Feb 2012 8:11 PM #10
I'm having the same problem.
I'm having the same problem.
@Phil Strong I do declare my Viewport Container in my Controller's view configuration array. I still cannot access my Viewport Container by the supposed "getter" methods that are supposed to be automatically generated as suggested by this article.
http://www.sencha.com/learn/architecting-your-app-in-ext-js-4-part-3
I've attached my code-base, can you give me suggestions as to what is wrong ?


Reply With Quote
