-
19 Mar 2008 2:13 AM #41
I have added this function to code:
Re xtype error: Is file really included - check path? Typo in xtype? Last line with Ext.reg('metaform', Ext.ux.MetaForm); missing?PHP Code:if(!Ext.isArray) {
Ext.isArray = function(v) {
return v && 'function' == typeof v.pop;
}
}
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
19 Mar 2008 8:14 AM #42
Hi Saki,
it's me again. :-)
I have a question.
Is it possible to send a Combobox with a store with values through your UX? (Or generally, create a new class/object?)
I tried, but didn't succeed.
Help would be really appreciated!Code:$fields = array( array( "name"=>"dial" ,"fieldLabel"=>"Dial" ,"editor"=>array( "xtype"=>"combo", "mode"=>"local", "store"=>array("Ext.data.SimpleStore"=>array("fields"=>array('id', 'descr'), "data"=>array(array(0, 'zero'), array(1, 'one')))), ) ) );
Greetings
ikk0
-
19 Mar 2008 12:05 PM #43
I have some pre-configured combos for this purpose in my application so all I need to send from server is xtype.
See Application Design Based On Pre-Configured Classes for more details on how to create such components.Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
19 Mar 2008 12:29 PM #44
But i need to fill them with data from the server. What's the best way of doing this?
Greetings
-
19 Mar 2008 12:33 PM #45
That's no problem. Have you read the above link? You can pre-configure your classes whatever way you like.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
19 Mar 2008 12:35 PM #46
Ahh, after reading it the second time I understood it. Thanks!
-
19 Mar 2008 1:43 PM #47
Please See My Failing TestCase
Please See My Failing TestCase
Saki, it's me again. Have prepared a testcase of my usage, please have a look.
Odili Charles Opute
Proudly Nigerian
Blog
Cotributions
Ext.ux.Image
Ext.ux.Wizard
Ext.plugin.ModalNotice
Ext.plugin.ComboLoader
Ext.ux.form.ScreenshotField
-
19 Mar 2008 2:05 PM #48
And what's problem? It works fine. Congrats!
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
19 Mar 2008 3:39 PM #49
Strange Then
Strange Then
I can't place my finger on the problem, but this same testcase for me fails in firefox and IE7. Everything seems ok with the code, I thought my application had issues that made it not to work hence I made this simple test which now works for you but fails for me. I am confused.
Odili Charles Opute
Proudly Nigerian
Blog
Cotributions
Ext.ux.Image
Ext.ux.Wizard
Ext.plugin.ModalNotice
Ext.plugin.ComboLoader
Ext.ux.form.ScreenshotField
-
19 Mar 2008 3:44 PM #50
What's your PHP version? Do you receive metaData from server? How does received JSON look like?
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video


Reply With Quote