valuelists.ini issue

A place for users and developers of the Xataface to discuss and receive support.

valuelists.ini issue

Postby 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
wisni1rr
 
Posts: 107
Joined: Mon Feb 13, 2012 9:03 pm

Re: valuelists.ini issue

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: valuelists.ini issue

Postby wisni1rr » Thu Mar 01, 2012 11:20 am

Thank you, Steve.
wisni1rr
 
Posts: 107
Joined: Mon Feb 13, 2012 9:03 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved