valuelists.ini issue
Archived from the Xataface Users forum.
wisni1rr — Thu Mar 01, 2012 11:14 am
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
shannah — Thu Mar 01, 2012 11:19 am
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
wisni1rr — Thu Mar 01, 2012 11:20 am
Thank you, Steve.