On Oct 18, 2007, at 10:49 AM, Vitantonio Messa wrote:
It doesn't seem to work: I still get a 0 from this function: $doc.getObjectNumbers("XWiki.ClassName"))
I've never done it myself but maybe someone else here can help. You could also check if you find examples in the source code or in the pages of XE. -Vincent
Vincent Massol wrote:
On Oct 18, 2007, at 10:35 AM, Vitantonio Messa wrote:
Thanks Vincent,
I'll try it. If it is working, of course, I'm going to put some information on xwiki.org. Thanks once again!
hmm seems like the $xwiki.saveDocument() api is internal only.
You should use the $mydocument.save() API instead.
-Vincent
Vincent Massol wrote:
Hi Vito,
On Oct 18, 2007, at 10:13 AM, Vitantonio Messa wrote:
Hi,
I have created my own class. In a document, I'm able to create a object of that class, write and read fields in that object, but I don't know how to memorize this object in the database: I was looking on the developer guide on xwiki.org and I found only this page http://www.xwiki.org/xwiki/bin/view/DevGuide/DatabaseTutorial (which is not complete, unfortunately for me). Can anyone help me, please? Have you called $xwiki.saveDocument()?
Would be nice if you could put this code snippet for creating an object using scripting on the following page: http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide
Thanks -Vincent
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users