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.
I realized this yesterday when we did the upgrade on the server. Expect the next build of designer to prefix builds/ in the path.
Originally Posted by tdekoekkoek
Where is the code you are invoking getView/getDataList from? What do your references look like? Could you send us a simple sample project?
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: #dataList
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.
How do you associate the top-level view to the controller? To my knowledge I am following exactly the steps in your video.
BTW, Our main prototype App written in 2.0.pr3 does not display at all in beta 2.
First thing I see is your controller doesn't have MainNav as a view
Yeah, I think I removed it when wanting to make the sample project smaller. Adding it back in did not change the result for me.
Originally Posted by Phil.Strong
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.
Touch Premium Member
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.
I've attached my code-base, can you give me suggestions as to what is wrong ?
Tags for this Thread