PDA

View Full Version : Ext Designer exported grid problem



TeeCee
7 Jul 2010, 4:08 AM
Hi,

I've now trying out extDesigner and I made an EditorGrid, and 2 forms and some stores fo dropdown lists.
I exported it and having problems: "invoicesGrid is not a constructor".
I copied the files in the correct order from 'includeOrder' to my page, oly the xds_index.js was not copied (that is not in the 'includeOrder.txt'. Before these files I include the ext-base.js adapter and the ext-all.js.

Strange, but if after the page loaded I run in the console (in firefox):

Ext.onReady(function() {
var invoicesGrid = new invoicesGrid({
renderTo: "invoicesGridPlaceholder"
});
});

than it loads the grid in the proper place.
I added these lines to an init.js and loaded after the 'includeOrder.txt' files and the same happens: I got a "not a constructor" error, but running these lines make the grid loading...

Any idea why? Thanks for any help! :s
(Was this a dumb question?)

TeeCee
7 Jul 2010, 5:27 AM
Woaaaa!

I found that some reason ext designer uses the 'jsclass' property wrong: is uses this for the class and also for the variable.
if I change
var invoicesGrid = new invoicesGrid({
to
var invoicesGridObj = new invoicesGrid({
than it runs like charm.

Is only me, who's stupid in this case (the exported code is the one, that is NOT running)?