[Users] Limit on field-number?
Paul Libbrecht
paul at activemath.org
Thu Oct 2 20:18:22 CEST 2008
> I seem to encounter a very bizarre SQL error while trying to update
> my class.
> I am either uploading the class using a xar, with hand-edited-xml,
> or editing it with the class-editor.
> In both cases I get an SQL error when trying to add the property.
> I can happily re-upload another version which changes, e.g. changing
> a field name. But I cannot add fields.
>
> For a while I was believing that the field-number which was all
> handcrafted was wrong but it was not.
> I renumbered and reached 63 fields.
> Can it be that 64 is the maximum number of fields?
> Can't really believe it.
The answer is no, I just managed to create a class with 128 fields
using the following:
#set($c = $xwiki.getClass("Sandbox.AttemptClass"))
class is $c
#foreach($x in [1..10])
$c.getXWikiClass().addTextAreaField("xxx$x", "xxx $x", 40,5)
#end
and I suppose that if no-one comes with a better solution, I'll use
these methods to create my class-anew.
Fiddling with internals always has its dangers.
paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2203 bytes
Desc: not available
Url : http://lists.inter2geo.eu/pipermail/users/attachments/20081002/b94026f2/attachment.bin
More information about the Users
mailing list