Page 1 of 1

valuelists.ini issue

PostPosted: Thu Mar 01, 2012 11:14 am
by wisni1rr
I'm not sure what the issue is exactly. However, If I add the following to a valuelist.ini it will kill all my select widgets on the given table:
Code: Select all
NONE = NONE

Has anyone else experienced this issue?
Also occurs with these:
Code: Select all
NO = NONE
NONE = NO
NO = NO

However this works:
Code: Select all
NAH = NAH

Re: valuelists.ini issue

PostPosted: Thu Mar 01, 2012 11:19 am
by shannah
INI files have a few reserved words. From http://php.net/manual/en/function.parse-ini-file.php
Note: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, false, on, off, none. Values null, no and false results in "", yes and true results in "1". Characters ?{}|&~![()^" must not be used anywhere in the key and have a special meaning in the value.


A workaround is to define the valuelist in the database (i.e. use the __sql__ directive), or define it in a delegate class.
There are examples of both methods at
http://xataface.com/wiki/valuelists.ini_file

-Steve

Re: valuelists.ini issue

PostPosted: Thu Mar 01, 2012 11:20 am
by wisni1rr
Thank you, Steve.