[2011-02-18 17:02:39] (ERROR @ /manager/index.php) style,advimage,advlink,modxlink,searchreplace,print,contextmenu,paste,fullscreen,noneditable,nonbreaking,xhtmlxtras,visualchars,media [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) Instantiated a derived class modDocument that is not a subclass of the requested class Content [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) Instantiated a derived class modDocument that is not a subclass of the requested class Content [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) modTemplateVar: Attempt to set NOT NULL field caption to NULL [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) modTemplateVar: Attempt to set NOT NULL field caption to NULL [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) modTemplateVar: Attempt to set NOT NULL field caption to NULL [2011-02-18 17:02:41] (ERROR @ /assets/components/xdbedit/connector.php) modTemplateVar: Attempt to set NOT NULL field caption to NULL
Umm.. and so i thought of trying xdbedit, starting with the provided example (telephonelist).
I’ve Downloaded all the project files zipped from github ,put them in place:
- core\components\example
- core\components\xdbedit
And followed the wiki instructions:
I. Finished the first stage (`The Installation`), all the namescape,menu,action related stuff.
II. Going through the second stage (`Creating your own table-editor with xdbedit`), skipping steps 1-5. completing steps 6-7.
III. Went to the `mytask` option under the components>custom-table-editor and right before my eyes, there it was: an empty custom table CMP.
Seems very nice, looks very handy. awesome job you’ve made there Bruno, thanks.
A small problem i came across is:
When i was trying to add some data i couldn’t make changes and hitting the Save button didn’t fired nothing.
I’m on 2.0.7-pl.
Any hints?
maybe it’s related with the `datum` tv?
[2011-02-23 14:41:45] (ERROR @ /mcz_revolution/assets/components/xdbedit/connector.php) Error 42S02 executing statement:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'db48294_103.modx_example_telephonedir' doesn't exist
)[2011-02-27 10:44:44] (ERROR @ /mdx8/connectors/security/user.php) Could not get table name for class: modAccess
[2011-02-27 10:44:45] (ERROR @ /mdx8/connectors/security/user.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 4' at line 1
)
[2011-02-28 11:18:57] (ERROR @ /mdx8/connectors/element/tv/renders.php) Could not cache context settings for mgr.
[2011-02-28 11:20:31] (ERROR @ /mdx8/assets/components/xdbedit/connector.php) Error 42S02 executing statement:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'mdx8.modx_example_telephonedir' doesn't exist
)
[2011-02-28 11:20:31] (ERROR @ /mdx8/assets/components/xdbedit/connector.php) Error 42S02 executing statement:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'mdx8.modx_example_telephonedir' doesn't exist
)
[2011-02-28 11:20:31] (ERROR @ /mdx8/assets/components/xdbedit/connector.php) Could not create table `modx_example_telephonedir`
SQL: CREATE TABLE `modx_example_telephonedir` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`name` VARCHAR(255) NOT NULL DEFAULT '',`jobtitle` VARCHAR(255) NOT NULL DEFAULT '',`region` VARCHAR(255) NOT NULL DEFAULT '1',`published` TINYINT(1) unsigned NOT NULL DEFAULT '0',`createdby` INT(10) NOT NULL DEFAULT '0',`createdon` DATETIME NOT NULL,`editedby` INT(10) NOT NULL DEFAULT '0',`editedon` DATETIME NOT NULL,`deleted` TINYINT(1) unsigned NOT NULL DEFAULT '0',`deletedon` DATETIME NOT NULL,`deletedby` INT(10) NOT NULL DEFAULT '0',`publishedon` DATETIME NOT NULL,`publishedby` INT(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`)) ENGINE=MyISAM
ERROR: Array
(
[0] => 42S01
[1] => 1050
[2] => Table 'modx_example_telephonedir' already exists
)
[2011-02-28 11:20:31] (ERROR @ /mdx8/assets/components/xdbedit/connector.php) Error 42S01 attempting to create object container for class Telephonedir:
Array
(
[0] => 42S01
[1] => 1050
[2] => Table 'modx_example_telephonedir' already exists
)
I think it’s have something to do with the lack of TinyMCE which probably triggers the save button.
hello g0mp,
clicking the save button still doesn’t have any effect.
I really don’t know what to do now.
assets/components/xdbedit/js/widgets/xdbedit.panel.js (lines 49-51)
,beforeSubmit: function(o) {
tinyMCE.triggerSave();
}
[
Thanks for your answer.
I’m running revo 2.0.7 on a default xammp installation with mac. The project ist not yet online :/
I made exactly the same change as you with your telephonedir-example an i’m getting the same error.
I’ve made two screenshots, one before adding the image-tv to the name filed, the second afterwards...
Seems that modx does not load the ExtJs stuff right? Very strange...
At least i know it must be a specific problem... thank you! Will make more tests...
Grüsse aus der Schweiz

Just look at the screenshots in post #60. When using an image tv, the whole layout crashes. I only changed the region tv from dropdown to image (like you did in #58) and it stopped working..
what exactly is your issue?
btw. xdbedit is not tested on 2.1, yet
It a fresh install of 2.0.8pl-traditional, just for testing and developing purpose - so I could give you manager access if you want to.