Page 1 of 1

Limit of Custom Fields

Posted: 2013-02-14 20:03:19
by YoungBoy
Is There a limit for the custom fields?

Over about 150 are not handled. Why?

Regards

Posted: 2013-02-14 22:40:03
by soulsnake
Hi,

Actually there is a limitation of 155 custom fields for some technical reasons.
I can increase this limitation but I never thought before that a user could have more than 150 custom fields !
Why do you need more than 150 custom fields ?

Soulsnake.

Posted: 2013-02-15 18:27:30
by YoungBoy
Hi soulsnake

I use the custom frame to enter all the crew of the movie.
I have created many custom fields to manage this.
Each person has two fields: (name - character - role) and (link photo)
For example:
(PIRATES OF THE CARIBBEAN: ON STRANGER TIDES)
First field type string = (JOHNNY DEPP - Jack Sparrow - Actor)
Second field type URL= (http://ia.media-imdb.com/images/M/MV5BM ... @._V1_.jpg)

The actors of 'Pirates of the Caribbean' are 73!!! Add the Director, the Producer, etc etc... exceed 200!! sigh!!! 200 * 2 = 400 double sigh!!

I'd like to know where is the limit in the code... I can not find it... I would try to change it

Posted: 2013-02-15 19:15:08
by soulsnake
Well, this is really big !
I never thought to something like that !

The limit is in fields.pas on this line :

Code: Select all

customFieldMax       = 255; // should be enough...
Unfortunately you can not just increase this value like this because we use sets and sets may have at most 256 elements.
As I said, this limit is for technical reason...
So if you want to remove the limit, you have to change the way this is handled in all code...
Not impossible but a little bit boring...

Why do you not store the 30 first principal actors like you do and you put the others actors in one text field with the same structure ?
This way you will have enough fields and principal actors will be directly accessible !

Soulsnake.